Skip to content

Commit

Permalink
Use NodeJS 18 from DNF module instead of NodeSource
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Jun 27, 2024
1 parent ec693f2 commit fb346c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion puppet/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod 'puppet/extlib', '7.0.0'
mod 'puppet/jenkins', '5.0.0'
mod 'puppet/letsencrypt', '11.0.0'
mod 'puppet/mosquitto', '2.1.0'
mod 'puppet/nodejs', '10.0.0'
mod 'puppet/nodejs', '11.0.0'
mod 'puppet/pbuilder', '2.0.0'
mod 'puppet/redis', '11.0.0'
mod 'puppet/selinux', '4.1.0'
Expand Down
9 changes: 4 additions & 5 deletions puppet/modules/jenkins_node/manifests/unittests.pp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@
stdlib::ensure_packages(['python3-virtualenv'])

# nodejs/npm for JavaScript tests
if $facts['os']['family'] == 'RedHat' {
$nodejs_version = $facts['os']['release']['major'] ? { '8' => '14', default => '18' }
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '9' {
class { 'nodejs':
repo_url_suffix => "${nodejs_version}.x",
nodejs_package_ensure => latest,
npm_package_name => false,
repo_version => '18',
repo_class => 'nodejs::repo::dnfmodule',
npm_package_name => false,
} -> Package <| provider == 'npm' |>

package { 'bower':
Expand Down

0 comments on commit fb346c0

Please sign in to comment.