Even with a corrected PATH (with our paths post-pended) puppet is executed via the system Ruby when it is instaled ... but only on a host with just 'agent' not on a host with 'master' and 'agent':
# master: |
execve("/opt/puppetlabs/puppet/bin/puppet", ["/opt/puppetlabs/puppet/bin/puppe"..., "apply", "package_gem_colorize_present.pp"], [/* 22 vars */]) = 0 |
brk(NULL) = 0x16b7000
|
# agent |
execve("/usr/local/sbin/ruby", ["ruby", "/opt/puppetlabs/bin/puppet", "apply", "package_gem_colorize_present.pp"], [/* 21 vars */]) = -1 ENOENT (No such file or directory) |
execve("/usr/local/bin/ruby", ["ruby", "/opt/puppetlabs/bin/puppet", "apply", "package_gem_colorize_present.pp"], [/* 21 vars */]) = -1 ENOENT (No such file or directory) |
execve("/sbin/ruby", ["ruby", "/opt/puppetlabs/bin/puppet", "apply", "package_gem_colorize_present.pp"], [/* 21 vars */]) = -1 ENOENT (No such file or directory) |
execve("/bin/ruby", ["ruby", "/opt/puppetlabs/bin/puppet", "apply", "package_gem_colorize_present.pp"], [/* 21 vars */]) = 0 |
brk(NULL) = 0x82b000
|
Full strace output attached. |