From 83e7aa9a35c4f7f09802598208a9f29fc9084c95 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Tue, 11 Feb 2025 16:37:45 +0100 Subject: [PATCH] ceph-infra: allow configuring logrotate Signed-off-by: Seena Fallah (cherry picked from commit 7d668c1795ee4edd27175f7d2cbbd9e50695e867) --- roles/ceph-infra/templates/logrotate.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-infra/templates/logrotate.conf.j2 b/roles/ceph-infra/templates/logrotate.conf.j2 index c64d4e03d..3c655e2ca 100644 --- a/roles/ceph-infra/templates/logrotate.conf.j2 +++ b/roles/ceph-infra/templates/logrotate.conf.j2 @@ -1,6 +1,6 @@ /var/log/ceph/*.log { - rotate 7 - daily + rotate {{ ceph_logrotate_rotate | default(7) }} + {{ ceph_logrotate_frequency | default('daily') }} compress sharedscripts postrotate -- 2.47.3