Take a look at schedules:
http://reductivelabs.com/trac/puppet/wiki/TypeReference#id177
In the case of users/groups, in your site.pp you could setup something like:
User { schedule => once_daily }
and make sure to create the schedule named 'once_daily'
It should be mentioned here that puppet is not a cron replacement. If
there is something you want done every 5 mins, it might be better to
use puppet to manage the cron jobs.
That being said, IIRC there is a default schedule of twice every hour
already, so anything that doesn't have an explicit schedule shouldn't
run more than that. you could modify the default schedule like:
Schedule {
period => hourly,
repeat => 4,
}
Anything that doesn't explicitly have another schedule listed will use
the default one.
.r'
Exactly, that's also my understanding: Schedules are only a upper limit.
Regards, DavidS
Note that you've specified defaults for schedules here, not actually
modified the default schedule.
And there's actually no default schedule -- by default, every resource
runs in every transaction, and no resource will ever run more often
than Puppet itself runs.
--
It's a small world, but I wouldn't want to paint it.
-- Stephen Wright
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
> As a matter of interest, if schedule is saying don't run more than 4
> times in an hour, it looks like puppet will figure out a default
> interval of every 15 minutes. How does that coincide with puppet's
> default of running its recipes every half hour? Does it then run the
> rest of the recipes every half hour, and that specific resource every
> 15 minutes?
>
> It certainly seems that way, which would make the answer to my
> original question "yes" and make me a very happy camper! :-)
>
> Upon my initial read of Schedule, it seemed to indicate an
> exclusivity, such that puppet would run every half hour (or according
> to its defined runinterval), and, Schedule only made a difference if
> you wanted something to run less frequently.
Your initial read of Schedule was right -- you can only use it to make
resources run less often, never more.
--
I have lost friends, some by death... others through sheer inability
to cross the street. -- Virginia Woolf