diff options
Diffstat (limited to 'manifests/cron/openbsd.pp')
-rw-r--r-- | manifests/cron/openbsd.pp | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/manifests/cron/openbsd.pp b/manifests/cron/openbsd.pp index f10fa24..5565fbb 100644 --- a/manifests/cron/openbsd.pp +++ b/manifests/cron/openbsd.pp @@ -1,22 +1,20 @@ class puppet::cron::openbsd inherits puppet::openbsd { - include puppet::cron::base - case $puppet_config { - '': { $puppet_config = '/etc/puppet/puppet.conf' } - } - Openbsd::Rc_local['puppetd']{ - ensure => 'absent', - } - Cron['puppetd_check']{ - ensure => absent, - } - Cron['puppetd_restart']{ - ensure => absent, - } + include puppet::cron::base + if !$puppet_config { $puppet_config = '/etc/puppet/puppet.conf' } - cron { 'puppetd_run': - command => "/usr/local/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'", - user => 'root', - minute => [0,30], - } + Openbsd::Rc_local['puppetd']{ + ensure => 'absent', + } + Cron['puppetd_check']{ + ensure => absent, + } + Cron['puppetd_restart']{ + ensure => absent, + } + cron { 'puppetd_run': + command => "/usr/local/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'", + user => 'root', + minute => [0,30], + } } |