diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2014-11-23 10:32:50 -0200 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2014-11-23 10:32:50 -0200 | 
| commit | ed99503fb1b426ad73c4c20b90cf0fe3d98f0bf2 (patch) | |
| tree | c2fbc89021659121a84d173bb04789decd61d2a1 /manifests | |
| parent | bfbec3f3f9563989b003495cd553c8afa1a1b980 (diff) | |
| download | puppet-apache-ed99503fb1b426ad73c4c20b90cf0fe3d98f0bf2.tar.gz puppet-apache-ed99503fb1b426ad73c4c20b90cf0fe3d98f0bf2.tar.bz2  | |
Avoid logrotate errors inside vservers
Diffstat (limited to 'manifests')
| -rw-r--r-- | manifests/init.pp | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index cbdd051..5796fe0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -204,4 +204,17 @@ class apache(      command     => "/etc/init.d/apache2 force-reload",      refreshonly => true,    } + +  # Avoid this logrotate error: +  # /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) +  file { '/etc/logrotate.d/apache2': +    ensure => present, +    owner  => root, +    group  => root, +    mode   => 0644, +    source => $::virtual ? { +      'vserver' => 'puppet:///modules/apache/logrotate', +      default   => undef, +    }, +  }  }  | 
