Re: [Puppet Users] Puppetd Cron Not Running

2010-08-24 Thread Ohad Levy
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

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-24 Thread Daniel Pittman
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

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-24 Thread Aurelien Degremont
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

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-24 Thread Ohad Levy
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

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-23 Thread Daniel Pittman
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

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-23 Thread Jeff McCune
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

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-23 Thread Daniel Pittman
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))')

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-23 Thread Brandon Evans
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)

[Puppet Users] Puppetd Cron Not Running

2010-08-23 Thread Franck
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":