From b3463290ebd6c4ace707e43df8f9fc11c22a5a50 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 16 Feb 2016 16:41:26 +0000 Subject: [PATCH] Put /usr/local/bin first in paths Reorder the exec paths so that /usr/local/bin is checked before /usr/bin and /bin. The newer NPM-installed node.js is at /usr/local/bin/node while the older distro-packaged node.js is at /usr/bin/node. Change-Id: I3e13ea1e9c5efed6e1a3ab489e70918f6b6a1768 --- manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 9699e0f..70731f4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -236,7 +236,7 @@ class openstackid ( } exec { 'deploy-site': - path => '/usr/bin:/bin:/usr/local/bin', + path => '/usr/local/bin:/usr/bin:/bin', command => '/opt/deploy/deploy.sh init openstackid', onlyif => '/opt/deploy/deploy.sh status openstackid | grep N/A', logoutput => on_failure, @@ -256,7 +256,7 @@ class openstackid ( } exec { 'update-site': - path => '/usr/bin:/bin:/usr/local/bin', + path => '/usr/local/bin:/usr/bin:/bin', command => '/opt/deploy/deploy.sh update openstackid', onlyif => '/opt/deploy/deploy.sh status openstackid | grep UPDATE', logoutput => on_failure,