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:
parent
038a2bbdf3
commit
ff0a8a38b2
@ -152,4 +152,16 @@ class openstack_project::ask (
|
||||
backup_user => 'bup-ask',
|
||||
backup_server => 'ci-backup-rs-ord.openstack.org',
|
||||
}
|
||||
|
||||
class { '::httpd::logrotate':
|
||||
options => [
|
||||
'daily',
|
||||
'missingok',
|
||||
'rotate 7',
|
||||
'compress',
|
||||
'delaycompress',
|
||||
'notifempty',
|
||||
'create 640 root adm',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user