From 6b96c4a1d6cb2058bfa91658412821e06ef61842 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Fri, 19 Mar 2021 23:17:14 +0200 Subject: apache: logrotate: keep 60 days of logs on duvel --- modules/apache/templates/logrotate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/apache/templates/logrotate b/modules/apache/templates/logrotate index d440193f..8efa7ace 100644 --- a/modules/apache/templates/logrotate +++ b/modules/apache/templates/logrotate @@ -1,8 +1,9 @@ /var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex { - rotate <%= scope.lookupvar('apache::var::httpdlogs_rotate') %> <% if @hostname == 'duvel' then %> + rotate 60 daily <% else %> + rotate <%= scope.lookupvar('apache::var::httpdlogs_rotate') %> monthly <% end %> missingok -- cgit v1.2.1