Is there any way to have parts of a node''s configuration updated automatically and other parts updated on-demand? i.e. node1 has two classes associated with it: • app1_class • sysconfig_class and ideally I would like to have the sysconfig_class updated regularly (i.e. run puppetd as a daemon), but I would like the app1_class updated on-demand only (i.e. puppetd --onetime). Is there an easy/straightforward way to set this up? (fyi: using puppet version 25.5) 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-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.
On Tue, Jul 13, 2010 at 10:31 PM, cmvelo <cmvelo@gmail.com> wrote:> I would like to have the sysconfig_class updated regularly (i.e. run puppetd as a daemon), but I would like the app1_class updated on-demand only (i.e. puppetd --onetime).You have a few options here. If it''s just that one class, you could run puppetd out of cron every 30 minutes through a trivial wrapper script that splays. All resources in the sysconfig_class class will be tagged with "sysconfig_class" so you could just run: puppetd --test --tags sysconfig_class If you''d like to apply everything but the app1_class, then please watch feature request http://projects.puppetlabs.com/issues/3746 which is a request to support applying all tags except a certain set of tags using the --tags option. Cheers, -- Jeff McCune 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-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.
What I would suggest is to change the puppetd from a daemon to a cron job and add the argument of --tags. This way you can stipulate which classes to run on the cronjob run, which can run every 15mins or so. eg 15 * * * * pupetd -t --tags sysconfig_class --report etc ------ Regards David> > > Topic: Updating node''s configuration > <http://groups.google.com/group/puppet-users/t/7ca6d4a53ed9866e> > > cmvelo <cmvelo@gmail.com> Jul 13 10:31PM -0700 ^ <#digest_top> > > Is there any way to have parts of a node''s configuration updated > automatically > and other parts updated on-demand? > > i.e. > > node1 has two classes associated with it: > • app1_class > • sysconfig_class > > and ideally I would like to have the sysconfig_class updated > regularly > (i.e. run puppetd as a daemon), but I would like the app1_class > updated > on-demand only (i.e. puppetd --onetime). > > Is there an easy/straightforward way to set this up? > > (fyi: using puppet version 25.5) > > 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-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.
Jesús M. Navarro
2010-Jul-15 09:41 UTC
Re: [Puppet Users] Re: Updating node''s configuration
El Miércoles, 14 de Julio de 2010 23:22:54, David Ward escribió:> What I would suggest is to change the puppetd from a daemon to a cron > job and add the argument of --tags. This way you can stipulate which > classes to run on the cronjob run, which can run every 15mins or so. > > eg > 15 * * * * pupetd -t --tags sysconfig_class --reportWouldn''t it be possible to start puppet daemon mode with those options anyway? Cheers. -- 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.