summaryrefslogtreecommitdiff
path: root/manifests/cron
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-05-11 17:00:20 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-05-11 17:00:20 -0400
commit57d8ecf86f49db2c9e367480e380a73cad4b71e6 (patch)
tree473263b26fdb525e7e7c90efbf919b9d3f02dd99 /manifests/cron
parent0f0434a582c1f3bd274a79e51ab34a2f4887e659 (diff)
parentfc72cbc8a9d09b2d305df061dfc74cc960610d85 (diff)
Merge commit 'nadir/master'
Diffstat (limited to 'manifests/cron')
-rw-r--r--manifests/cron/base.pp12
-rw-r--r--manifests/cron/linux.pp8
2 files changed, 16 insertions, 4 deletions
diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp
index 3f7f8c0..5fc55d2 100644
--- a/manifests/cron/base.pp
+++ b/manifests/cron/base.pp
@@ -4,11 +4,17 @@ class puppet::cron::base inherits puppet::base {
Service['puppet']{
enable => false,
}
- File['puppet_config']{
- notify => undef
+
+ if defined (puppet::puppetmaster) {}
+ else {
+ File['puppet_config']{
+ notify => undef
+ }
}
+
+
case $operatingsystem {
- debian,openbsd: {
+ debian,openbsd,ubuntu: {
#it's already disabled
}
default: {
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",
}
}