From 4d6133c274f6ea67bbb32b0c966c83f1adbd84ac Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 30 Oct 2024 19:35:13 -0700 Subject: Reduce the number of old Apache logs on friteuse (mga#33670) They're currently taking up half the available disk which is currently full. --- modules/apache/templates/logrotate | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/apache') diff --git a/modules/apache/templates/logrotate b/modules/apache/templates/logrotate index 0ae57120..2788a942 100644 --- a/modules/apache/templates/logrotate +++ b/modules/apache/templates/logrotate @@ -1,7 +1,11 @@ /var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex { -<% if @hostname == 'duvel' then %> +<% if @hostname == 'duvel' %> rotate 60 daily +<% elif @hostname == 'friteuse' %> + # The virtual disk is very small so keep log sizes down + rotate 52 + weekly <% else %> rotate <%= scope.lookupvar('apache::var::httpdlogs_rotate') %> monthly -- cgit v1.2.1