Thanks for that tip Daniel.
I went ahead and switched to use the "fqdn_rand" function as it's a
lot more consistent which is what I wanted.
I'm new to Puppet so I'm still learning some of the functions that can
be used.

On Aug 23, 7: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
>
> --
> ✣ Daniel Pittman            ✉ dan...@rimspace.net            ☎ +61 401 155 707
>                ♽ made with 100 percent post-consumer electrons

-- 
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