Greg Graf said:
> Hello,
>
> We're running 2.6 on Ubuntu 10.04 and here's what I'm seeing (simplified
> test):
>
> class cdtest {
> exec {'cdtest': command => 'cd' }
> }
>
> # puppet agent --test
> info: Caching catalog for servername
> info: Applying configuration version '1280441519'
> err: /Stage[main]/Cdtest/Exec[cdtest]/returns: change from notrun to 0
> failed: Could not find command 'cd'
> notice: Finished catalog run in 0.65 seconds
> #
>
> Any ideas on why this is failing? I am running into this with rvm as well
> (since it is a function and not a binary).
>
Isn't this by design? Unless the puppet docs say that "exec" is always
run through a shell, then I wouldn't expect it to be.
In my manifests, if I want a shell, I explicitly use:
command => '/bin/sh -c "some shell commands"'
--
Rohan McGovern
QA Engineer
Qt Development Frameworks, Nokia
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.