On 28/06/2012, at 21:24, kalaniS wrote:
> I'm a newbie to puppet and have been trying to execute a shell script
> residing in puppet master machine in a puppet agent, with no luck so
> far. Would appreciate any ideas on how to do this.
>
It does depend on what you mean, can you clarify further
As far as technique, assuming your myscript module (so in init.pp), you install
the file using puppet and then run it:
class myscript {
$filesource = "puppet:///modules/myscript"
$script1 = '/usr/local/bin/myscript.sh'
$script1source = "$filesource/myscript.sh"
file { $script1:
sourc