diff --git a/puppet/modules/jenkins_node/manifests/unittests.pp b/puppet/modules/jenkins_node/manifests/unittests.pp index 5efe4bbab..b98d87f39 100644 --- a/puppet/modules/jenkins_node/manifests/unittests.pp +++ b/puppet/modules/jenkins_node/manifests/unittests.pp @@ -71,8 +71,9 @@ # nodejs/npm for JavaScript tests if $facts['os']['family'] == 'RedHat' { + $nodejs_version = $facts['os']['release']['major'] ? { '8' => '14', default => '18' } class { 'nodejs': - repo_url_suffix => '14.x', + repo_url_suffix => "${nodejs_version}.x", nodejs_package_ensure => latest, npm_package_name => false, } -> Package <| provider == 'npm' |>