aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2025-05-10 09:39:25 +0300
committerJani Välimaa <wally@mageia.org>2025-05-10 09:39:25 +0300
commita39a332671b7cb8e99c3ecf8954aeb20223eff14 (patch)
treee3c69894979328e2734fbeb6f1a81d7f60b09a55
parent3b8641a4fa11f79f94aee1bef6a918eaa1f272c0 (diff)
downloadpuppet-a39a332671b7cb8e99c3ecf8954aeb20223eff14.tar
puppet-a39a332671b7cb8e99c3ecf8954aeb20223eff14.tar.gz
puppet-a39a332671b7cb8e99c3ecf8954aeb20223eff14.tar.bz2
puppet-a39a332671b7cb8e99c3ecf8954aeb20223eff14.tar.xz
puppet-a39a332671b7cb8e99c3ecf8954aeb20223eff14.zip
Rotate apache logs weekly on sucuk to keep them smaller
-rw-r--r--modules/apache/templates/logrotate3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/apache/templates/logrotate b/modules/apache/templates/logrotate
index b0f41b55..4d90e47e 100644
--- a/modules/apache/templates/logrotate
+++ b/modules/apache/templates/logrotate
@@ -6,6 +6,9 @@
# The virtual disk is very small so keep log sizes down
rotate 52
weekly
+<% elsif @hostname == 'sucuk' %>
+ rotate 52
+ weekly
<% else %>
rotate <%= scope.lookupvar('apache::var::httpdlogs_rotate') %>
monthly