From 9a7c6134fd862f96c360216f748e12182fa16ac3 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 27 Oct 2023 11:00:45 +0200 Subject: [PATCH] default to 16.x on el7 --- manifests/params.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index dec0a427..b85d07a8 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -11,7 +11,10 @@ $repo_proxy_password = 'absent' $repo_proxy_username = 'absent' $repo_release = undef - $repo_url_suffix = '18.x' + $repo_url_suffix = ($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7') ? { + true => '16.x', + default => '18.x', + } $use_flags = ['npm', 'snapshot'] $cmd_exe_path = $facts['os']['family'] ? {