summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/master/mongrel.pp13
-rw-r--r--manifests/puppetmasterd.pp9
2 files changed, 13 insertions, 9 deletions
diff --git a/manifests/master/mongrel.pp b/manifests/master/mongrel.pp
index eb96247..42b4050 100644
--- a/manifests/master/mongrel.pp
+++ b/manifests/master/mongrel.pp
@@ -28,6 +28,15 @@ class puppet::master::mongrel {
require => [ Package['puppetmaster'], Package['mongrel'], Service['nginx'] ],
}
+ # restart the master from time to time to avoid memory problems
+ # thanks to https://labs.riseup.net/code/projects/shared-puppet
+ file { "/etc/cron.d/puppetmaster":
+ source => "puppet://$server/modules/puppet/cron.d/puppetmaster",
+ owner => root,
+ group => root,
+ mode => 0644;
+ }
+
}
class puppet::master::mongrel::disabled {
@@ -41,4 +50,8 @@ class puppet::master::mongrel::disabled {
enable => false,
ensure => absent,
}
+
+ File['/etc/cron.d/puppetmaster']
+ ensure => absent,
+ }
}
diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp
index 37a95ff..28311e1 100644
--- a/manifests/puppetmasterd.pp
+++ b/manifests/puppetmasterd.pp
@@ -134,15 +134,6 @@ class puppetmasterd {
mode => 0700,
}
- # restart the master from time to time to avoid memory problems
- # thanks to https://labs.riseup.net/code/projects/shared-puppet
- file { "/etc/cron.d/puppetmaster":
- source => "puppet://$server/modules/puppet/cron.d/puppetmaster",
- owner => root,
- group => root,
- mode => 0644;
- }
-
# and the script to the cron-job above
file { "/usr/local/sbin/update-puppet-conf.sh":
source => "puppet://$server/modules/puppet/update-puppet-conf.sh",