diff options
Diffstat (limited to 'manifests/master')
-rw-r--r-- | manifests/master/mongrel.pp | 13 |
1 files changed, 13 insertions, 0 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, + } } |