Hello
This commit add the possibility to create nodejs::npm::global_config_entry
resources with hiera declaration.
I've also bootstrap a hiera context on this module.
n/a
Manage npm global config entries using the ini_setting
resource instead of exec
resources using npm config
commands.
Closes #439 and #436
Improve shell quoting for safety and readability. Noticed these while reviewing #435 but didn't get to this before that was merged.
the other ones do not contain the latest releases
(e.g. 20.x contains 20.5 vs 20.9)
this removes the repo_enable_src
and repo_release
parameters, as they are not useful anymore.
<!--
Thank you for contributing to this project!
-->
<!--
Replace this comment with a description of your pull request.
-->
<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->
Do not call the nodejs::install
when manage_package_repo
is set to false
.
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