Don't do nodejs::install
when manage_package_repo
is set to false
.
#478
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request (PR) description
Do not call the
nodejs::install
whenmanage_package_repo
is set tofalse
.This Pull Request (PR) fixes the following issues
When/if you like to write
/root/.npmrc
yourself, it will fail otherwise as nodejs module also does it:Jul 17 10:10:25 no000010sresd0 puppet-agent[31736]: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: File[/root/.npmrc] is already declared at (file: /etc/puppetlabs/code/vcs/ops/ops_master/external-modules/nodejs/manifests/install.pp, line: 55); cannot redeclare (file: /etc/puppetlabs/code/vcs/devops/devops_master/modules/moller/manifests/modules/node.pp, line: 42) (file: /etc/puppetlabs/code/vcs/devops/devops_master/modules/moller/manifests/modules/node.pp, line: 42, column: 2) (file: /etc/puppetlabs/code/vcs/devops/devops_master/modules/moller/manifests/modules/mollerservice.pp, line: 85) on node no000010sresd0.moller.local