Yushu
2010-Jul-16 19:03 UTC
[Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success
Hi Experts, I''m running "puppetd --no-daemonize --debug --onetime". Is there a way to figure out if the one time run is success? I couldn''t do it by looking at the return value, it return 0 when "err: skipping run" Success meaning All definitions are applied and nothing failed. I can of course grep for "err:" but I''m just wondering is there an official way of doing this? Thanks a lot! -Yushu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2010-Jul-16 19:47 UTC
Re: [Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success
----- "Yushu" <yao.yushu@gmail.com> wrote:> Hi Experts, > > I''m running "puppetd --no-daemonize --debug --onetime". > Is there a way to figure out if the one time run is success? > I couldn''t do it by looking at the return value, it return 0 when > "err: skipping run" > > Success meaning All definitions are applied and nothing failed. > > I can of course grep for "err:" but I''m just wondering is there an > official way of doing this? >slightly less hacky though still hacky is to just add --summarize to the command line and parse that output. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Patrick Mohr
2010-Jul-16 21:35 UTC
Re: [Puppet Users] How can I know if puppetd --no-daemonize --debug --onetime is success
You could also test to see if post-command is run. On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote:> > ----- "Yushu" <yao.yushu@gmail.com> wrote: > >> Hi Experts, >> >> I''m running "puppetd --no-daemonize --debug --onetime". >> Is there a way to figure out if the one time run is success? >> I couldn''t do it by looking at the return value, it return 0 when >> "err: skipping run" >> >> Success meaning All definitions are applied and nothing failed. >> >> I can of course grep for "err:" but I''m just wondering is there an >> official way of doing this? >> > > slightly less hacky though still hacky is to just add --summarize to the command line and parse that output. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Yushu
2010-Jul-16 21:55 UTC
[Puppet Users] Re: How can I know if puppetd --no-daemonize --debug --onetime is success
Thanks Patrick, But where is the post-command? Couldn''t find any document in 0.25. Thanks -Yushu On Jul 16, 2:35 pm, Patrick Mohr <kc7...@gmail.com> wrote:> You could also test to see if post-command is run. > > On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote: > > > > > ----- "Yushu" <yao.yu...@gmail.com> wrote: > > >> Hi Experts, > > >> I''m running "puppetd --no-daemonize --debug --onetime". > >> Is there a way to figure out if the one time run is success? > >> I couldn''t do it by looking at the return value, it return 0 when > >> "err: skipping run" > > >> Success meaning All definitions are applied and nothing failed. > > >> I can of course grep for "err:" but I''m just wondering is there an > >> official way of doing this? > > > slightly less hacky though still hacky is to just add --summarize to the command line and parse that output.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Patrick Mohr
2010-Jul-16 22:00 UTC
Re: [Puppet Users] Re: How can I know if puppetd --no-daemonize --debug --onetime is success
Run "puppetd --genconfig" for commented documentation about puppetd''s parameters. Take a look at "puppetd --genconfig | grep _command" if you don''t want 5-15 pages of text to wade through. On Jul 16, 2010, at 2:55 PM, Yushu wrote:> Thanks Patrick, > > But where is the post-command? Couldn''t find any document in 0.25. > > Thanks > > -Yushu > > > On Jul 16, 2:35 pm, Patrick Mohr <kc7...@gmail.com> wrote: >> You could also test to see if post-command is run. >> >> On Jul 16, 2010, at 12:47 PM, R.I.Pienaar wrote: >> >> >> >>> ----- "Yushu" <yao.yu...@gmail.com> wrote: >> >>>> Hi Experts, >> >>>> I''m running "puppetd --no-daemonize --debug --onetime". >>>> Is there a way to figure out if the one time run is success? >>>> I couldn''t do it by looking at the return value, it return 0 when >>>> "err: skipping run" >> >>>> Success meaning All definitions are applied and nothing failed. >> >>>> I can of course grep for "err:" but I''m just wondering is there an >>>> official way of doing this? >> >>> slightly less hacky though still hacky is to just add --summarize to the command line and parse that output. > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.