From 2391536525af6b4d77f095b4f53f7e2e6adba4b2 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 18 Aug 2016 16:26:18 -0400 Subject: [PATCH] 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 --- modules/openstack_project/manifests/mirror.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/openstack_project/manifests/mirror.pp b/modules/openstack_project/manifests/mirror.pp index 3d609a6a56..adf227cd3c 100644 --- a/modules/openstack_project/manifests/mirror.pp +++ b/modules/openstack_project/manifests/mirror.pp @@ -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', + ], + } }