Gah, Found it on the Configration Parameter Reference here --> http://docs.puppetlabs.com/references/2.6.2/configuration.html Nevermind!
On Wed, Dec 1, 2010 at 7:45 AM, Gary Larizza <[email protected]>wrote: > Nigel, > > Do you know if the pre and post-run commands are documented anywhere > outside of the 0.25.4 release notes? I'll file a documentation bug if I'm > missing something, but I tried to look up docs this morning and didn't find > anything. I think many people would love this feature if they realized it > was there. > > -Gary > > On Wed, Nov 24, 2010 at 11:41 AM, Nigel Kersten <[email protected]>wrote: > >> On Wed, Nov 24, 2010 at 7:13 AM, Nicolas Arias <[email protected]> >> wrote: >> > Hi, i want to check if the nodes are forwarding logs to a syslog >> > server. At this moment i cant just push a new syslog.conf file to the >> > nodes, so, i want to know if its possible to tell the nodes to parse >> > the syslog.conf files and fail the run or something like that if a >> > specific line is not found. >> > >> > Is this possible?, if it's possible, any hint? >> >> a) Use an exec resource to grep -q the relevant line. This will push >> the success/failure of the grep to the exit status, so the exec will >> fail if the line is missing. Put this in a class and make all the >> relevant resources require that class. >> >> or >> >> b) Push the search to the puppet pre-run command. >> >> # A command to run before every agent run. If this command >> returns a non-zero >> # return code, the entire Puppet run will fail. >> # The default value is ''. >> # prerun_command = >> >> >> >> > >> > >> > thanks >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Puppet Users" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> [email protected]<puppet-users%[email protected]> >> . >> > For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > >> > >> >> >> >> -- >> Nigel Kersten - Puppet Labs - http://www.puppetlabs.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<puppet-users%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> >> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
