diff --git a/manifests/params.pp b/manifests/params.pp index 78db11b4..a8813ef4 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -27,7 +27,10 @@ $nodejs_dev_package_ensure = 'absent' $nodejs_package_name = 'nodejs' $npm_package_ensure = 'absent' - $npm_package_name = 'npm' + $npm_package_name = $nodejs::manage_package_repo ? { + true => false, + default => 'npm' + } $npm_path = '/usr/bin/npm' $repo_class = 'nodejs::repo::nodesource' $package_provider = undef @@ -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