Re: [Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
I apologize for posting wrong log messages, here is the correct log: notice: Starting catalog run notice: //File[/tmp/QoS/QoS.sh]/ensure: created err: //Exec[/tmp/QoS/QoS.sh]/returns: change from notrun to 0 failed: /tmp/QoS/QoS.sh returned 1 instead of 0 at /etc/puppet/manifests/site.pp:10 notice

Re: [Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-17 Thread Annie Rana
Hi Peter, thanks for your reply. I managed to copy the shell file puppet client using the file resource recipe you specified but exec is throwing an error, which is as follows: info: No classes to store info: Caching catalog at /var/lib/puppet/state/localconfig.yaml notice: Starting catalog run er

Re: [Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-16 Thread Peter Bukowinski
It sounds like you haven't set up the puppet fileserver yet. Choose a directory that will hold files you want to copy to clients. I use /opt/files, so that's what is in my example. Create fileserver.conf in the same directory as puppet.conf and add these lines: [files] path /opt/files allow *

[Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-16 Thread annierana
Hi all, I am new to puppet. I need a sample recipe to write/copy a shell file on puppet client. The shell file exists on puppet server. Once the file is written, I also want to execute it. I have tried using file resource with ensure command to copy at /etc but permission was denied and moreover wi