summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/base.pp
diff options
context:
space:
mode:
authornadir <nadir-technik@nadir.org>2010-03-07 23:06:33 +0100
committernadir <nadir-technik@nadir.org>2010-03-07 23:06:33 +0100
commitfc72cbc8a9d09b2d305df061dfc74cc960610d85 (patch)
treeb29b5729ca00bbaca53996aeb034453097d39314 /manifests/puppetmaster/base.pp
parent23c385e39e89ffd326bf12ad2d7b1640d4f65a95 (diff)
When using Passenger, we don't need /etc/cron.d/puppetmaster.cron
Diffstat (limited to 'manifests/puppetmaster/base.pp')
-rw-r--r--manifests/puppetmaster/base.pp13
1 files changed, 8 insertions, 5 deletions
diff --git a/manifests/puppetmaster/base.pp b/manifests/puppetmaster/base.pp
index 2305725..4a1cb6f 100644
--- a/manifests/puppetmaster/base.pp
+++ b/manifests/puppetmaster/base.pp
@@ -32,11 +32,14 @@ class puppet::puppetmaster::base inherits puppet::base {
include puppet::puppetmaster::storeconfigs
}
- # restart the master from time to time to avoid memory problems
- file{'/etc/cron.d/puppetmaster.cron':
- source => [ "puppet://$server/modules/puppet/cron.d/puppetmaster.${operatingsystem}",
- "puppet://$server/modules/puppet/cron.d/puppetmaster" ],
- owner => root, group => 0, mode => 0644;
+
+ if ! defined (puppet::puppetmaster::passenger) {
+ # restart the master from time to time to avoid memory problems
+ file{'/etc/cron.d/puppetmaster.cron':
+ source => [ "puppet://$server/modules/puppet/cron.d/puppetmaster.${operatingsystem}",
+ "puppet://$server/modules/puppet/cron.d/puppetmaster" ],
+ owner => root, group => 0, mode => 0644;
+ }
}
file{'/etc/cron.daily/puppet_reports_cleanup.sh':