Thanks Nigel!!, i will give it a try later! On Wed, Nov 24, 2010 at 1:41 PM, Nigel Kersten <ni...@puppetlabs.com> wrote: > On Wed, Nov 24, 2010 at 7:13 AM, Nicolas Arias <nicoar...@gmail.com> 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 puppet-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscr...@googlegroups.com. >> 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 puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > 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 puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.