From d0d81935bea5d3d78db5c9bf08df331840412794 Mon Sep 17 00:00:00 2001 From: Facundo Guerrero Date: Fri, 15 Sep 2017 11:44:50 +0200 Subject: [PATCH] Turn off legacy symlinks for ubuntu 16.04 With the New version of NodeJS v6.11.3 puppet brakes the installation on ubuntu 16.04 * Content of the node packages. V6.11.2 ``` ~$ dpkg -l |grep nodejs ii nodejs 6.11.2-1nodesource1~xenial1 amd64 Node.js event-based server-side javascript engine ~$ dpkg -L nodejs |grep '/usr/bin/' /usr/bin/nodejs /usr/bin/npm ``` V6.11.3 ``` ~# dpkg -l|grep nodejs ii nodejs 6.11.3-1nodesource1 amd64 Node.js event-based server-side javascript engine ~# dpkg -L nodejs |grep '/usr/bin/' /usr/bin/node /usr/bin/npm ``` After puppet runs to install nodejs the node binary is a broken link. ``` ~# ls -ltra /usr/bin/node /usr/bin/nodejs /etc/alternatives/nodejs lrwxrwxrwx 1 root root 24 Sep 15 09:41 /usr/bin/nodejs -> /etc/alternatives/nodejs lrwxrwxrwx 1 root root 13 Sep 15 09:41 /etc/alternatives/nodejs -> /usr/bin/node lrwxrwxrwx 1 root root 15 Sep 15 09:41 /usr/bin/node -> /usr/bin/nodejs ``` --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 9c690dc9..e95063f3 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -74,7 +74,7 @@ $repo_class = '::nodejs::repo::nodesource' } elsif $::operatingsystemrelease =~ /^16.04$/ { - $legacy_debian_symlinks = true + $legacy_debian_symlinks = false $manage_package_repo = true $nodejs_debug_package_name = 'nodejs-dbg' $nodejs_dev_package_name = 'nodejs-dev'