Update logrotate for mirror server

Since this is currently unmanaged by openstack-infra, the default is
to rotate logs every week, 52 times.  Needless to say, we are running
out of HDD space.  Now we rotate every day, 7 times.  This will cut
down on the amount of HDD space apache2 logs require.

Change-Id: I7baf62a36432f5d322e7f63e8c89bd6205974ca8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-08-18 16:26:18 -04:00
parent fb877fe29d
commit 2391536525
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -196,4 +196,16 @@ class openstack_project::mirror (
File["${www_root}"],
]
}
class { '::httpd::logrotate':
options => [
'daily',
'missingok',
'rotate 7',
'compress',
'delaycompress',
'notifempty',
'create 640 root adm',
],
}
}