Rotate apache logs every 7 days

Today, we have 4.7GB of log files on ask.o.o. Lets reduce that by
keeping them around for 1 week.

Change-Id: I2af10ccef757b889995c75c25a79914e6816429f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-11-26 12:38:04 -05:00
parent 038a2bbdf3
commit ff0a8a38b2

View File

@ -152,4 +152,16 @@ class openstack_project::ask (
backup_user => 'bup-ask', backup_user => 'bup-ask',
backup_server => 'ci-backup-rs-ord.openstack.org', backup_server => 'ci-backup-rs-ord.openstack.org',
} }
class { '::httpd::logrotate':
options => [
'daily',
'missingok',
'rotate 7',
'compress',
'delaycompress',
'notifempty',
'create 640 root adm',
],
}
} }