summaryrefslogtreecommitdiff
path: root/manifests/cron/linux.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-04-11 18:46:53 -0400
committerMicah Anderson <micah@riseup.net>2012-04-11 18:46:53 -0400
commit06942f75f03b5c8a78c8b3a9f466bf72b1b34f5c (patch)
tree016be558260bd3afe1b5c4e973e377f023c2fda0 /manifests/cron/linux.pp
parentc813c09f282afb879399fc21ed990767d4aff64f (diff)
implement fix for cron file being put in place even when you do not include puppet::cron.
The module should make sure that the cron file is not there if you aren't using the cron method, otherwise the daemon and the cronjob could both run. Used suggested change from jcharaoui in #3513
Diffstat (limited to 'manifests/cron/linux.pp')
-rw-r--r--manifests/cron/linux.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp
index bab9564..5003559 100644
--- a/manifests/cron/linux.pp
+++ b/manifests/cron/linux.pp
@@ -16,5 +16,6 @@ class puppet::cron::linux inherits puppet::linux {
source => undef,
content => "#run puppet\n$puppet_crontime root output=\$(/usr/sbin/puppetd --onetime --no-daemonize --splay --config=/etc/puppet/puppet.conf --color false); ret=\$?; printf \"\\%s\" \"\$output\" | grep -E '(^err:|^alert:|^emerg:|^crit:)'; exit \$ret\n",
before => Service['puppet'],
+ ensure => present
}
}