On Tue, Aug 24, 2010 at 3:29 PM, Daniel Pittman wrote:
> Ohad Levy writes:
>
> > Another options which I've used successfully in the past is:
> > http://projects.puppetlabs.com/projects/puppet/wiki/Cron_Patterns - see
> the
> > section title: Setting Cron using a Puppet custom function
> >
> > O
Ohad Levy writes:
> Another options which I've used successfully in the past is:
> http://projects.puppetlabs.com/projects/puppet/wiki/Cron_Patterns - see the
> section title: Setting Cron using a Puppet custom function
>
> One important thing to note is that when you get a random value, puppet w
As puppet will change the cron object at each run, use something that is different per machine, but the same for the
same machine:its IP.
Use ipaddress fact.
Here two ideas to get this value
# Get the last IP digit
$digits = split($ipaddress)
# Modulo 60
$minute = inline_template("<%= d
Another options which I've used successfully in the past is:
http://projects.puppetlabs.com/projects/puppet/wiki/Cron_Patterns - see the
section title: Setting Cron using a Puppet custom function
One important thing to note is that when you get a random value, puppet will
change it on each puppet
Jeff McCune writes:
> On Mon, Aug 23, 2010 at 4:54 PM, Daniel Pittman wrote:
>> Franck writes:
>>
>>> So I've decided to use crontab for all my puppet clients rather than
>>> the daemon. I've set-up a puppetmaster with seven puppet clients.
>>>
>>> I'm using the following pattern:
>>>
>>> clas
On Mon, Aug 23, 2010 at 4:54 PM, Daniel Pittman wrote:
> Franck writes:
>
>> So I've decided to use crontab for all my puppet clients rather than
>> the daemon. I've set-up a puppetmaster with seven puppet clients.
>>
>> I'm using the following pattern:
>>
>> class cron {
>> $minute = gener
Franck writes:
> So I've decided to use crontab for all my puppet clients rather than
> the daemon. I've set-up a puppetmaster with seven puppet clients.
>
> I'm using the following pattern:
>
> class cron {
> $minute = generate('/usr/bin/env', 'sh', '-c', 'printf $((RANDOM
> %60+0))')
On 8/23/10 9:15 AM, Franck wrote:
So I've decided to use crontab for all my puppet clients rather than
the daemon. I've set-up a puppetmaster with seven puppet clients.
I'm using the following pattern:
class cron {
$minute = generate('/usr/bin/env', 'sh', '-c', 'printf $((RANDOM
%60+0)
So I've decided to use crontab for all my puppet clients rather than
the daemon. I've set-up a puppetmaster with seven puppet clients.
I'm using the following pattern:
class cron {
$minute = generate('/usr/bin/env', 'sh', '-c', 'printf $((RANDOM
%60+0))')
cron { "manual-puppet":