James Turnbull wrote:
> Geoff Crompton wrote:
>> Mark Plaksin wrote:
>>> Maybe we're the last to the party but wow do schedules make a huge
>>> difference!  Especially with file serving.  We added schedules to a few
>>> file-heavy modules and cut the load and hits/day on our file serving
>>> puppetmaster by 2/3.  Instead of doing everything once an hour these
>>> modules are now scheduled to run just twice a day.
>> Have you got a url on schedules? I'm not familiar with it, unless this 
>> is just a term for some technique of using cron?
>>
>>
> 
> http://reductivelabs.com/trac/puppet/wiki/TypeReference#id275
> 
> Regards
> 
> James Turnbull
> 

Ok, assuming I've got in site.pp

schedule { maint:
     range => "2 - 4",
     period => daily,
     repeat => 1
}

How do I use that in other classes and resources? The Language tutorial 
http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial doesn't 
mention them.

Do you do something like:
cron { 'a_beaut_cronjob':
        cmd => 'echo foo',
        requires => Schedule[ maint ],
}

-- 
+-Geoff Crompton
+--Debian System Administrator
+---Trinity College

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to