Skip to content

Commit

Permalink
don't set npm_package_name when managerepo is true
Browse files Browse the repository at this point in the history
nodesource started adding "provides: npm" to their nodejs packages,
which makes our code uninstall the nodejs package again
  • Loading branch information
evgeni committed Oct 27, 2023
1 parent 4fa73d3 commit ec46622
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
$nodejs_dev_package_ensure = 'absent'
$nodejs_package_name = 'nodejs'
$npm_package_ensure = 'absent'
$npm_package_name = 'npm'
$npm_package_name = $manage_package_repo ? {
true => false,
default => 'npm'
}
$npm_path = '/usr/bin/npm'
$repo_class = 'nodejs::repo::nodesource'
$package_provider = undef
Expand All @@ -39,7 +42,10 @@
$nodejs_dev_package_ensure = 'absent'
$nodejs_package_name = 'nodejs'
$npm_package_ensure = 'absent'
$npm_package_name = 'npm'
$npm_package_name = $manage_package_repo ? {
true => false,
default => 'npm'
}
$npm_path = '/usr/bin/npm'
$repo_class = 'nodejs::repo::nodesource'
$package_provider = undef
Expand Down

0 comments on commit ec46622

Please sign in to comment.