diff options
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, +    }, +  }  } | 
