blob: 1cde2f32e7608aff8bcda81d9e9950aca7435cb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class apache::logrotate::centos::vhosts inherits apache::logrotate::centos {
# add vhost folders to logrotation
Augeas['logrotate_httpd']{
changes => [ 'rm /files/etc/logrotate.d/httpd/rule/file',
'ins file before /files/etc/logrotate.d/httpd/rule/*[1]',
'ins file before /files/etc/logrotate.d/httpd/rule/*[1]',
'set /files/etc/logrotate.d/httpd/rule/file[1] /var/log/httpd/*log',
'set /files/etc/logrotate.d/httpd/rule/file[2] /var/www/vhosts/*/logs/*log' ],
onlyif => 'get /files/etc/logrotate.d/httpd/rule/file[2] != "/var/www/vhosts/*/logs/*log"',
}
}
|