summaryrefslogtreecommitdiff
path: root/manifests/logrotate/centos.pp
blob: 593f692a0f48d7b912d11b011cdbae223d130a81 (plain)
1
2
3
4
5
6
7
8
9
class 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]',
        'set /files/etc/logrotate.d/httpd/rule/file[1] /var/log/httpd/*log' ],
      onlyif => 'get /files/etc/logrotate.d/httpd/rule/file[1] != "/var/log/httpd/*log"',
    }
}