Issue #4912 has been reported by Hunter Haugen.
----------------------------------------
Bug #4912: Exec resource needs `which` in path
http://projects.puppetlabs.com/issues/4912
Author: Hunter Haugen
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected version:
Keywords:
Branch:
In puppet 0.25.5 this works, and in puppet 2.6.1 this breaks:<pre>
exec { "ping -c1 localhost":
path => '/bin',
}</pre>
Output from 2.6.1:<pre>
/usr/lib/ruby/site_ruby/1.8/puppet/util/posix.rb:117: command not found: which
ping
err: /Stage[main]//Exec[ping -c1 localhost]/returns: change from notrun to 0
failed: Could not find command 'ping'</pre>
`which` is located in `/usr/bin`, and it will succeed if this is added to the
path attribute.
CentOS 5.5<br />
Ruby 1.8.2
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.