# restart puppet once in a while and randomly delay the restart between 0 and 32 minutes -> splay puppetmaster hammering
-0 22 * * */2 root sleep `echo $RANDOM/1000*60 | bc` && /etc/init.d/puppet restart > /dev/null
+0 22 * * */2 root /bin/bash -c "sleep `echo $RANDOM/1000*60 | bc` && /etc/init.d/puppet restart" > /dev/null
ensure => present,
}
+ # thanks to https://labs.riseup.net/code/projects/shared-puppet
file { "/etc/cron.d/puppetd":
source => "puppet://$server/modules/puppet/cron.d/puppetd",
owner => root,
}
# restart the master from time to time to avoid memory problems
+ # thanks to https://labs.riseup.net/code/projects/shared-puppet
file { "/etc/cron.d/puppetmaster":
source => "puppet://$server/modules/puppet/cron.d/puppetmaster",
owner => root,