Yes, I did take that into account when using the original function's
implementation.

But the issue wasn't residing with that, rather one the puppet clients
is not executing through cron.

On Aug 24, 5:43 am, Ohad Levy <ohadl...@gmail.com> wrote:
> 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 run.
>
> Ohad
>
> On Tue, Aug 24, 2010 at 2:54 AM, 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<puppet-users%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.

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