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.

Reply via email to