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

Linux mint requires a second run #394

Open logicminds opened 5 years ago

logicminds commented 5 years ago

Affected Puppet, Ruby, OS and module versions/distributions

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

puppet apply -e 'include nodejs'

What are you seeing

Notice: /Stage[main]/Apt::Update/Exec[apt_update]/returns: Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [930 kB]
Notice: /Stage[main]/Apt::Update/Exec[apt_update]/returns: Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [918 kB]
Notice: /Stage[main]/Apt::Update/Exec[apt_update]/returns: Reading package lists...
Notice: /Stage[main]/Apt::Update/Exec[apt_update]/returns: E: The repository 'https://deb.nodesource.com/node_8.x tessa Release' does not have a Release file.
Error: /Stage[main]/Apt::Update/Exec[apt_update]: Failed to call refresh: '/usr/bin/apt-get update' returned 100 instead of one of [0]
Error: /Stage[main]/Apt::Update/Exec[apt_update]: '/usr/bin/apt-get update' returned 100 instead of one of [0]
Notice: /Stage[main]/Nodejs::Install/Package[nodejs]: Dependency Exec[apt_update] has failures: true
Warning: /Stage[main]/Nodejs::Install/Package[nodejs]: Skipping because of failed dependencies
Warning: /Stage[main]/Nodejs::Install/Package[nodejs-dev]: Skipping because of failed dependencies
Warning: /Stage[main]/Nodejs::Install/Package[nodejs-dbg]: Skipping because of failed dependencies
Warning: /Stage[main]/Nodejs::Install/Package[npm]: Skipping because of failed dependencies
Notice: /Stage[main]/Nodejs::Install/File[root_npmrc]/ensure: defined content as '{md5}17626e1e7e2db5c71227460a36f6bbb8'
Notice: Applied catalog in 5.42 seconds

What behaviour did you expect instead

No failed dependencies. Had to run a second time.

Output log

Any additional information you'd like to impart

Workaround is to perform a 2nd puppet run which works.

TuningYourCode commented 5 years ago

If you set nodejs::repo_release to bionic it should be working. The nodejs repsoitory most likly does not support the mint linux release names.