I picked this up online somewhere and modified to suit:

   # Puppet will run twice an hour on a random schedule to spread load.
    $first_run  = fqdn_rand(30)
    $second_run = fqdn_rand(30) + 30

cron { 'puppet_cron':
        command => '/usr/bin/puppet agent --onetime --logdest syslog >
/dev/null 2>&1',
        user    => 'root',
        minute  => ["$first_run","$second_run"],
        require => File['puppet_conf'],
    }

Could you share how you did the random wait?  I may have to switch to
> a cron job with how often my daemons are crashing and having to be
> restarted by Zabbix.
>
>

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