From 79215f388b6367f3898e6facc94914055ae22218 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 17 Jan 2018 18:01:49 +0100 Subject: [PATCH] ansible-inventories/arocom#1590 Update logrotate to keep logs for only 7 days for GDPR compliance --- templates/etc-logrotate-apache2 | 36 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/templates/etc-logrotate-apache2 b/templates/etc-logrotate-apache2 index 4447105..f694d03 100644 --- a/templates/etc-logrotate-apache2 +++ b/templates/etc-logrotate-apache2 @@ -1,20 +1,20 @@ {{ jailroot }}/{{ item.jail.name }}/var/log/apache2/*.log { - daily - missingok - rotate 14 - compress - delaycompress - notifempty - create 644 root {{ item.jail.name }} - sharedscripts - postrotate - if /etc/init.d/apache2 status > /dev/null ; then \ - /etc/init.d/apache2 reload > /dev/null; \ - fi; - endscript - prerotate - if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ - run-parts /etc/logrotate.d/httpd-prerotate; \ - fi; \ - endscript + daily + rotate 7 + missingok + compress + delaycompress + notifempty + create 644 root {{ item.jail.name }} + sharedscripts + postrotate + if /etc/init.d/apache2 status > /dev/null ; then \ + /etc/init.d/apache2 reload > /dev/null; \ + fi; + endscript + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ + run-parts /etc/logrotate.d/httpd-prerotate; \ + fi; + endscript } -- GitLab