Raju, Being new to puppet, allow me to suggest the Learning Workshop - https://puppetlabs.com/learn.
In conjunection with that, we have a set of free tutorials with a learning VM ( http://docs.puppetlabs.com/learning/ ) that I feel may help alleviate some of these questions. Give that a shot. Thanks! On Mon, Sep 30, 2013 at 7:58 AM, Raju Patil <[email protected]> wrote: > I didnt see "file" resource to deploy the file and then "exec" option on > Puppet master. Is there any plugin I have to installed on Master & then > these two options will be > visible on Puppet master dashboard. Or I have to do the changes in > commandline. > Seriousely, not aware which file to edit & move ahead. Need your help. > > > > On Thursday, 19 September 2013 18:31:21 UTC+5:30, Raju Patil wrote: > >> JuanBrein, >> >> Can you pls.mention here, what activites do I have to perform on Master & >> nodes. >> >> Will be very helpful. >> >> Since I really dont know where this >> "file" resource to deploy the file and then "exec" to execute it: >> >> >> >> On Monday, 16 September 2013 18:23:18 UTC+5:30, JuanBrein wrote: >> >>> Not hard at all... >>> >>> just use "file" resource to deploy the file and then "exec" to execute >>> it: >>> >>> file{ "/path/to/my/script.sh" >>> source => "puppet:///modules/${module_**name}/script.sh", >>> mode => 755, >>> } ~> >>> >>> exec { "/path/to/my/script.sh" >>> refreshonly => true, >>> } >>> >>> The important bit here is the ~> . That means notify and require. It >>> basically means it will notify the exec when the file is deployed and that >>> puppet will push the file before trying to execute it. The refreshonly true >>> will assure you that the script will be executed only if it is notified. >>> >>> Cheers >>> >>> Juan >>> >>> On Monday, September 16, 2013 7:25:59 AM UTC+1, Raju Patil wrote: >>>> >>>> Hi, >>>> >>>> I am new to Puppet & just had installed Puppet master on Centos.And >>>> manging Linux & Windows nodes, now I would like to deploy and execute >>>> script on one of my Linux Box Remotely from >>>> Puppet Master. >>>> >>>> Appriciate your help. Pls. share steps to be followed for achieving >>>> above tast. >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- Rob Reynolds Developer, Puppet Labs Join us at PuppetConf 2014, September 23-24 in San Francisco -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
