Hi,
  You can get response from puppet, depend upon what you want to achieve.
*1st case* : if you want to log the output of command "nginx -t", you can 
use attribute

       logoutput => "true" or "false"
of exec resource
Please refer http://www.puppetcookbook.com/posts/exec-output-logging.html for 
deatailed description.

*2nd case* : if you want to execute something after finding file containing 
configuration error 

then you can use attribute

onlyif => "<command>" 
of exec resource

Please refer http://www.puppetcookbook.com/posts/exec-onlyif.html for 
deatiled description

Thanks & Regards,
Sneha More,
NTT DATA GTS, OSS Center India, (Pune).
 


On Monday, September 16, 2013 11:57:12 AM UTC+5:30, Adeel Bhatti wrote:
>
> Hi,
> Is it possible to get response of a command from puppet ?
> For example if I run "nginx -t" it would give some details about the 
> configurations i.e. if configuration has some error then which file has the 
> error !
>
> Regards
>
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
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