From: Seena Fallah Date: Tue, 11 Feb 2025 15:37:45 +0000 (+0100) Subject: ceph-infra: allow configuring logrotate X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fmergify%2Fbp%2Fstable-9.0%2Fpr-7657;p=ceph-ansible.git ceph-infra: allow configuring logrotate Signed-off-by: Seena Fallah (cherry picked from commit 7d668c1795ee4edd27175f7d2cbbd9e50695e867) --- 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