From c148067970d26a32a465ecfccc9a6e714715f47f Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Sun, 15 Jul 2018 11:42:29 +0200 Subject: [PATCH] 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: I1884dc5a005fe328469b58f876e854c22037d0b7 --- manifests/frontend.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/frontend.pp b/manifests/frontend.pp index a629422..eb2a5af 100644 --- a/manifests/frontend.pp +++ b/manifests/frontend.pp @@ -9,7 +9,8 @@ class openstack_health::frontend( ) { class { '::nodejs': - repo_url_suffix => '6.x', + repo_url_suffix => '6.x', + legacy_debian_symlinks => false, } package { 'node-gyp':