summaryrefslogtreecommitdiff
path: root/manifests/cron/linux.pp
blob: be174986faeacc20b9c2c3ee36cb9d863274596e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# manifests/cron/linux.pp 
class puppet::cron::linux inherits puppet::linux {
    include puppet::cron::base
    case $puppet_config {
        '': { $puppet_config = '/etc/puppet/puppet.conf' }
    }
    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",
    }
}