nicolas vigier
2013-Jan-15 15:29 UTC
[Puppet Users] Including some resources only some of the time
Hello, I am using puppet on some servers to do various different things, running puppet from crontab every 15 minutes, which is doing all the various tasks every 15 minutes. However some of the tasks are very resource intensive, but they wouldn''t need to be done so often, they could be done once a day. Other tasks are very quick and it''s useful to do them as often as possible, every 15 minutes or less. The problem is that at the moment, puppet is doing everything each time it is run. Is there some way to say that a class or resource should be included all the time, while an other one should be included only once every 30mn, every day or every week ? How would you do that ? Nicolas -- 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.
Brian Mathis
2013-Jan-15 16:57 UTC
Re: [Puppet Users] Including some resources only some of the time
I haven''t used them yet myself, but I think you might want to use a schedule: http://docs.puppetlabs.com/references/latest/type.html#schedule ❧ Brian Mathis On Tue, Jan 15, 2013 at 10:29 AM, nicolas vigier <boklm@mars-attacks.org> wrote:> Hello, > > I am using puppet on some servers to do various different things, > running puppet from crontab every 15 minutes, which is doing all the > various tasks every 15 minutes. However some of the tasks are very > resource intensive, but they wouldn''t need to be done so often, they > could be done once a day. Other tasks are very quick and it''s useful to > do them as often as possible, every 15 minutes or less. > > The problem is that at the moment, puppet is doing everything each time > it is run. Is there some way to say that a class or resource should be > included all the time, while an other one should be included only once > every 30mn, every day or every week ? > > How would you do that ? > Nicolas-- 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.
nicolas vigier
2013-Jan-15 17:37 UTC
Re: [Puppet Users] Including some resources only some of the time
On Tue, 15 Jan 2013, Brian Mathis wrote:> I haven''t used them yet myself, but I think you might want to use a schedule: > http://docs.puppetlabs.com/references/latest/type.html#scheduleThis seems to be exactly what I was looking for. 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.