Kenneth Holter
2012-Jan-06 12:24 UTC
[Puppet Users] Toggle noop mode from puppet dashboard
Hi all, I''d like to have most/all my puppet clients running in noop mode, and use Puppet Dashboard to toggle the noop switch for ordinary runs. I have groups of servers defined in the console, so toggling the noop switch on these groups would allow be great. Have anyone implemented such a feature and would like to provide a quick howto? One way might be to run puppet in cron, and have puppet control the cron command. If a dashboard variable "noop_mode" was set for the node, then the cron command would be something like "puppet agent --noop", and if not set the command would run without noop switch (i.e. "puppet agent"). But this means we would need to run puppet agents from cron intead of in daemon mode, and I''m not sure which is best. Regards, Kenneth -- 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.
Stu Teasdale
2012-Jan-06 13:08 UTC
Re: [Puppet Users] Toggle noop mode from puppet dashboard
On Fri, Jan 06, 2012 at 01:24:25PM +0100, Kenneth Holter wrote:> Hi all, > > > I''d like to have most/all my puppet clients running in noop mode, and > use Puppet Dashboard to toggle the noop switch for ordinary runs. I > have groups of servers defined in the console, so toggling the noop > switch on these groups would allow be great. > > Have anyone implemented such a feature and would like to provide a quick howto? > > One way might be to run puppet in cron, and have puppet control the > cron command. If a dashboard variable "noop_mode" was set for the > node, then the cron command would be something like "puppet agent > --noop", and if not set the command would run without noop switch > (i.e. "puppet agent"). But this means we would need to run puppet > agents from cron intead of in daemon mode, and I''m not sure which is > best.We default to --noop in production (as set in the puppet.conf file) then either manually override this on the command line or use mcollective to do grouped no-noop runs across our infrastructure. We modified the standard mc-puppetd to add support for this and tag specifications so we can do partial config runs under central control as well. I''m not sure how easy this would be to hook into the dashboard, but mcollective might be an approach to look at. Stu -- From the prompt of Stu Teasdale A day for firm decisions!!!!! Or is it? -- 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.
Daniel Sauble
2012-Jan-06 19:21 UTC
[Puppet Users] Re: Toggle noop mode from puppet dashboard
There was a Redmine issue on this awhile back that was improperly rejected. I''ve reopened it. http://projects.puppetlabs.com/issues/3233 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/apzPW0AeXz4J. 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.