Turn off binary symlink in nodejs module

On Xenial, the nodejs puppet module tries to create a symlink from
/usr/bin/node to /usr/bin/nodejs. Depending on the resource ordering,
this might happen before or after the nodejs package creates its own
/usr/bin/node. If puppet has the chance to make the symlink itself, it
breaks node by creating a broken link cycle. This patch uses the
legacy_debian_symlinks parameter to prevent the puppet module from doing
that. This problem was fixed and the option was deprecated and removed
in later versions of the nodejs puppet module, so we will have to remove
the parameter if we update the nodejs module.

Change-Id: I61e591dbeabe4c043f87b04a7c56c0539120f8a5
This commit is contained in:
Colleen Murphy 2018-07-24 11:25:53 +02:00
parent 15c133270b
commit fe5d375e4a
1 changed files with 3 additions and 2 deletions

View File

@ -84,8 +84,9 @@ class ethercalc (
if ($use_nodejs_version != 'system') {
class { '::nodejs':
repo_url_suffix => $use_nodejs_version,
before => Anchor['nodejs-package-install'],
repo_url_suffix => $use_nodejs_version,
legacy_debian_symlinks => false,
before => Anchor['nodejs-package-install'],
}
} else {
package { ['nodejs', 'npm']: