Hi All,
When I try to run any sudo commands like the below
class test {
exec { "sudocmd" :
cwd => "/home/server/",
path => ["/usr/bin/","/usr/sbin/","/bin"],
command => "sudo apt-get update",
}
}
Im getting the following error
# puppetd --server prudhvi.example.com --test
info: Caching catalog for node1.example.com
info: Applying configuration version '1274952926'
err: //test/Exec[sudocmd]/returns: change from notrun to 0 failed:
sudo apt-get update returned 1 instead of one of [0] at /etc/puppet/
manifests/site.pp:15
notice: Finished catalog run in 0.10 seconds
When i see # top
puppetd is being run by user puppet
Is that the problem.
Thanks in advance,
prudhvi
--
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.