Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# managed by Class['common::sleeperservice']
# sleep some time before running cron jobs
sleep <%= delay %>m
class common::sleeperservice {
$delay = fqdn_rand(120)
# suffix() is in
$files = regsubst(prefix(['daily', 'weekly', 'monthly'], '/etc/cron.'), '$', '/000-sleeper-service')
ensure => present,
content => template('common/sleeper-service.erb'),
mode => '0755',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment