Updating node's configuration

4 views
Skip to first unread message

cmvelo

unread,
Jul 14, 2010, 1:31:18 AM7/14/10
to Puppet Users
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,

Jeff McCune

unread,
Jul 14, 2010, 1:27:40 PM7/14/10
to puppet...@googlegroups.com
On Tue, Jul 13, 2010 at 10:31 PM, cmvelo <cmv...@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/

David Ward

unread,
Jul 14, 2010, 5:22:54 PM7/14/10
to puppet...@googlegroups.com
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



    �


    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...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Jesús M. Navarro

unread,
Jul 15, 2010, 5:41:37 AM7/15/10
to puppet...@googlegroups.com
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 --report

Wouldn't it be possible to start puppet daemon mode with those options anyway?

Cheers.

Reply all
Reply to author
Forward
0 new messages