diff options
-rw-r--r-- | README | 13 | ||||
-rw-r--r-- | manifests/cron/linux.pp | 8 |
2 files changed, 20 insertions, 1 deletions
@@ -15,5 +15,18 @@ Depends on Modules Usage ----- +in your site.pp, i.e. : + + $puppet_crontime = "0,12 * * * *" + include puppet::cron + + include puppet::puppetmaster + + include puppet::puppetmaster::passenger + + $puppet_storeconfig_password="..." + include puppet::puppetmaster::storeconfigs + + ...tbc... diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp index be17498..75f11a3 100644 --- a/manifests/cron/linux.pp +++ b/manifests/cron/linux.pp @@ -4,9 +4,15 @@ class puppet::cron::linux inherits puppet::linux { case $puppet_config { '': { $puppet_config = '/etc/puppet/puppet.conf' } } + + case $puppet_crontime { + '': { $puppet_crontime = '0,30 * * * *' } + } + + File['/etc/cron.d/puppetd.cron']{ source => undef, content => "# run puppet -0,30 * * * * root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n", +$puppet_crontime root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n", } } |