summaryrefslogtreecommitdiff
path: root/manifests/cron/openbsd.pp
blob: 5565fbb42bf96c2ca036a91ffd730ccdfb11380c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class puppet::cron::openbsd inherits puppet::openbsd {
  include puppet::cron::base 
  if !$puppet_config { $puppet_config = '/etc/puppet/puppet.conf' }

  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],
  }
}