From c129edffca64f2c159d04a66c7c672ee085ad421 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Wed, 15 Jul 2015 17:24:11 -0700 Subject: [PATCH] Use AIO ruby if available --- manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 855be23f1..43261ddc1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -209,10 +209,12 @@ if $::kernel == 'windows' { $command_path = "${::env_windows_installdir}/bin:${::path}" } else { - $command_path = "/opt/puppet/bin:${::path}" + $command_path = "/opt/puppetlabs/puppet/bin:/opt/puppet/bin:${::path}" } - } else { + } elsif $::kernel == 'windows' { $command_path = $::path + } else { + $command_path = "/opt/puppetlabs/puppet/bin:${::path}" } # if puppet is running as root, this exec should also run as root to allow