voxpupuli / puppet-nodejs

Puppet module to install nodejs and global npm packages
https://forge.puppet.com/puppet/nodejs
Apache License 2.0
113 stars 247 forks source link

Expected value for repo_pin #382

Closed gesinn-it-gea closed 5 years ago

gesinn-it-gea commented 5 years ago

I want to install nodejs 6.x on Ubuntu Server 18.04 and run into the same issue as reported here:

https://askubuntu.com/questions/1086445/why-does-the-script-for-installing-nodejs-6-x-installs-8-10

"Why does the script for installing nodejs 6_x installs 8_10?"

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

class { 'nodejs': nodejs_dev_package_ensure => 'present', npm_package_ensure => 'present', repo_url_suffix => '6.x', repo_pin => 10, }

What are you seeing

nodejs 8.x installed

What behaviour did you expect instead

nodejs 6.x installed

Any additional information you'd like to impart

I also tried to set

repo_pin => '6.14.1-1nodesource1',

gesinn-it-gea commented 5 years ago

also the following did not work:

class { 'nodejs': nodejs_dev_package_ensure => 'present', npm_package_ensure => 'present', repo_url_suffix => '6.x', repo_pin => 10, nodejs_package_ensure => '6.*', }

juniorsysadmin commented 5 years ago

@gesinn-it Within /etc/apt take a look at the default value of the pin for the official Ubuntu repositories - it's possible that they are set to a value much higher than 10. Also see: https://help.ubuntu.com/community/PinningHowto