Andriy Yurchuk
2013-Feb-07 13:42 UTC
[Puppet Users] mcollective-puppet-agent to return status of Puppet execution
I''m using mcollective-puppet-agent ( https://github.com/puppetlabs/mcollective-puppet-agent) to force Puppet runs on nodes. When running mco puppet runall is there any way I can get back the status of Puppet execution on each node? Currently, even if verbosity is enabled, mco does not provide much of information: 2013-02-07 13:29:54: Running all nodes with a concurrency of 10 2013-02-07 13:29:54: Discovering enabled Puppet nodes to manage Discovering hosts using the mc method for 3 second(s) .... 5 2013-02-07 13:29:57: Found 5 enabled nodes Discovering hosts using the mc method for 3 second(s) .... 0 2013-02-07 13:30:00: oms-753 schedule status: Started a background Puppet run using the ''puppet agent --onetime --daemonize --color=false'' command 2013-02-07 13:30:01: oms-9421 schedule status: Started a background Puppet run using the ''puppet agent --onetime --daemonize --color=false'' command 2013-02-07 13:30:03: oms-11728 schedule status: Started a background Puppet run using the ''puppet agent --onetime --daemonize --color=false'' command 2013-02-07 13:30:04: oms-9812 schedule status: Started a background Puppet run using the ''puppet agent --onetime --daemonize --color=false'' command 2013-02-07 13:30:05: oms-2787 schedule status: Started a background Puppet run using the ''puppet agent --onetime --daemonize --color=false'' command Is there any way to at least report back if Puppet run has succeeded or failed? -- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
R.I.Pienaar
2013-Feb-07 13:53 UTC
Re: [Puppet Users] mcollective-puppet-agent to return status of Puppet execution
----- Original Message -----> From: "Andriy Yurchuk" <ayurch00k@gmail.com> > To: puppet-users@googlegroups.com > Sent: Thursday, February 7, 2013 2:42:30 PM > Subject: [Puppet Users] mcollective-puppet-agent to return status of Puppet execution > > > > I''m using mcollective-puppet-agent ( > https://github.com/puppetlabs/mcollective-puppet-agent) to force Puppet > runs on nodes. When running mco puppet runall is there any way I can get > back the status of Puppet execution on each node? Currently, even if > verbosity is enabled, mco does not provide much of information: > > 2013-02-07 13:29:54: Running all nodes with a concurrency of 10 > 2013-02-07 13:29:54: Discovering enabled Puppet nodes to manage > Discovering hosts using the mc method for 3 second(s) .... 5 > 2013-02-07 13:29:57: Found 5 enabled nodes > Discovering hosts using the mc method for 3 second(s) .... 0 > 2013-02-07 13:30:00: oms-753 schedule status: Started a background Puppet run > using the ''puppet agent --onetime --daemonize --color=false'' command > 2013-02-07 13:30:01: oms-9421 schedule status: Started a background Puppet > run using the ''puppet agent --onetime --daemonize --color=false'' command > 2013-02-07 13:30:03: oms-11728 schedule status: Started a background Puppet > run using the ''puppet agent --onetime --daemonize --color=false'' command > 2013-02-07 13:30:04: oms-9812 schedule status: Started a background Puppet > run using the ''puppet agent --onetime --daemonize --color=false'' command > 2013-02-07 13:30:05: oms-2787 schedule status: Started a background Puppet > run using the ''puppet agent --onetime --daemonize --color=false'' command > > > Is there any way to at least report back if Puppet run has succeeded or > failed? >no not in the middle of runall, we just schedule a puppet run to run in the background - puppet runs can take random periods of time it wouldnt work to try and wait for each one to reply done - your reporting infrastructure etc should be used for that. you can use the status commands to pull out statusses after the run which would include details like failed/changed/etc resources -- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Andriy Yurchuk
2013-Feb-07 14:05 UTC
Re: [Puppet Users] mcollective-puppet-agent to return status of Puppet execution
Do I understand correctly that to forcefully run Puppet agents (without daemonizing them to run periodically) on all nodes the runall is not the right choice? Should I use runonce? To clarify, my use case is the following: I change the contents of the file that is the source for one of Puppets file resources, then I want all my nodes to fetch this change. On Thursday, February 7, 2013 3:53:57 PM UTC+2, R.I. Pienaar wrote:> > > > ----- Original Message ----- > > From: "Andriy Yurchuk" <ayur...@gmail.com <javascript:>> > > To: puppet...@googlegroups.com <javascript:> > > Sent: Thursday, February 7, 2013 2:42:30 PM > > Subject: [Puppet Users] mcollective-puppet-agent to return status of > Puppet execution > > > > > > > > I''m using mcollective-puppet-agent ( > > https://github.com/puppetlabs/mcollective-puppet-agent) to force Puppet > > runs on nodes. When running mco puppet runall is there any way I can get > > back the status of Puppet execution on each node? Currently, even if > > verbosity is enabled, mco does not provide much of information: > > > > 2013-02-07 13:29:54: Running all nodes with a concurrency of 10 > > 2013-02-07 13:29:54: Discovering enabled Puppet nodes to manage > > Discovering hosts using the mc method for 3 second(s) .... 5 > > 2013-02-07 13:29:57: Found 5 enabled nodes > > Discovering hosts using the mc method for 3 second(s) .... 0 > > 2013-02-07 13:30:00: oms-753 schedule status: Started a background > Puppet run > > using the ''puppet agent --onetime --daemonize --color=false'' command > > 2013-02-07 13:30:01: oms-9421 schedule status: Started a background > Puppet > > run using the ''puppet agent --onetime --daemonize --color=false'' command > > 2013-02-07 13:30:03: oms-11728 schedule status: Started a background > Puppet > > run using the ''puppet agent --onetime --daemonize --color=false'' command > > 2013-02-07 13:30:04: oms-9812 schedule status: Started a background > Puppet > > run using the ''puppet agent --onetime --daemonize --color=false'' command > > 2013-02-07 13:30:05: oms-2787 schedule status: Started a background > Puppet > > run using the ''puppet agent --onetime --daemonize --color=false'' command > > > > > > Is there any way to at least report back if Puppet run has succeeded or > > failed? > > > > > no not in the middle of runall, we just schedule a puppet run to run in > the > background - puppet runs can take random periods of time it wouldnt work > to > try and wait for each one to reply done - your reporting infrastructure > etc > should be used for that. > > you can use the status commands to pull out statusses after the run which > would > include details like failed/changed/etc resources >-- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
R.I.Pienaar
2013-Feb-07 15:44 UTC
Re: [Puppet Users] mcollective-puppet-agent to return status of Puppet execution
----- Original Message -----> From: "Andriy Yurchuk" <ayurch00k@gmail.com> > To: puppet-users@googlegroups.com > Sent: Thursday, February 7, 2013 3:05:22 PM > Subject: Re: [Puppet Users] mcollective-puppet-agent to return status of Puppet execution > > Do I understand correctly that to forcefully run Puppet agents (without > daemonizing them to run periodically) on all nodes the runall is not the > right choice? Should I use runonce? > To clarify, my use case is the following: I change the contents of the file > that is the source for one of Puppets file resources, then I want all my > nodes to fetch this change.runall does that, runonce too. Underneath runall does a runonce but it manages how many machines does the run at the same time -- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.