summaryrefslogtreecommitdiff
path: root/manifests/logrotate/centos.pp
blob: 4381205dab175bc3cf0ca8fb3796006716bd2166 (plain)
1
2
3
4
5
6
7
8
9
10
# add vhost folders to logrotation
class apache::logrotate::centos {
    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"',
      require => Package['apache'],
    }
}