Browse Source

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
Colleen Murphy 9 months ago
parent
commit
fe5d375e4a
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      manifests/init.pp

+ 3
- 2
manifests/init.pp View File

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

Loading…
Cancel
Save