This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
added npm.pp from puppetlabs-nodejs and make_default option #65
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.
Hi, I just switched from puppetlabs-nodejs to willdurand/puppet-nodejs to get the latest node version installed with my puppet-sinopia module and to get out of package manager hell for nodejs+npm installations on debian systems for now. Unfortunately, saheba/puppet-sinopia relies on the npm.pp from puppetlabs. I merged npm.pp from puppetlabs-nodejs into your puppet nodejs module, so I can enjoy the best of both ;-) I also added a make_default option to be able to select one nodejs installation as the primary one by adding a symlink /usr/local/bin/node pointing to the version which is installed with make_default to true. This change is backwards compatible, because the option's default value is false.
The rake test run results for this branch:
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
Cloning into 'spec/fixtures/modules/stdlib'...
remote: Counting objects: 5561, done.
remote: Total 5561 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (5561/5561), 1.10 MiB | 423 KiB/s, done.
Resolving deltas: 100% (2307/2307), done.
Cloning into 'spec/fixtures/modules/wget'...
remote: Counting objects: 534, done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 534 (delta 223), reused 534 (delta 223)
Receiving objects: 100% (534/534), 82.21 KiB, done.
Resolving deltas: 100% (223/223), done.
/.rvm/rubies/ruby-2.1.2/bin/ruby -S rspec spec/classes/nodejs_spec.rb spec/defines/nodejs_install_spec.rb spec/functions/is_binary_download_available_spec.rb spec/functions/is_npm_provided_spec.rb --color
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0)
rspec (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
...............................................
Finished in 3.57 seconds
47 examples, 0 failures
Let me know if there is anything else to do to get this merged.