I am using puppetlabs-nodejs module to install nodejs and npm. But how can I make sure that the version of both npm and nodejs is the latest version or is a specific version.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At present you can’t unfortunately. It would be possible but would require changes to the module (which I’m sure the author would accept pull requests for)
Specifically the module currently ensures that both node and npm are present, rather than latest or set to a specific version. You could expose an interface to change this if required.
https://github.com/puppetlabs/puppetlabs-nodejs/blob/master/manifests/init.pp#L61
https://github.com/puppetlabs/puppetlabs-nodejs/blob/master/manifests/init.pp#L67