On Mon, Aug 23, 2010 at 4:54 PM, Daniel Pittman <dan...@rimspace.net> wrote:
> Franck <ffallat...@gmail.com> 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))')
>
>    $minute = fqdn_rand(59)
>
> That generates a random, but consistent, number in the 0-59 range based on the
> name of the host.  This will give some spread, but not the complete randomness
> of the method above.
>
>        Daniel

This seems overly complicated.  Why not just have a bash wrapper
script execute from cron and execute puppetd for you:

#! /bin/bash
sleep $((RANDOM % 600))
exec puppetd $@

-- 
Jeff McCune
http://www.puppetlabs.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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