From 5605544a5da50cc2fdba3d2bed3fde5a8467db07 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 16 Apr 2019 15:21:15 -0400 Subject: [PATCH] long_running_cluster: Keep fewer logs & update postrotate I guess the logrotate config was updated in the actual Ceph packages at some point so I'm updating this template to match. Also, we need to keep fewer logs because the reesi keep filling up. Signed-off-by: David Galloway --- roles/long_running_cluster/templates/ceph-common.logrotate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/long_running_cluster/templates/ceph-common.logrotate b/roles/long_running_cluster/templates/ceph-common.logrotate index 12fe9d18..53d82397 100644 --- a/roles/long_running_cluster/templates/ceph-common.logrotate +++ b/roles/long_running_cluster/templates/ceph-common.logrotate @@ -1,10 +1,10 @@ # {{ ansible_managed }} /var/log/ceph/*.log { - rotate 12 + rotate 6 compress sharedscripts postrotate - killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw || true + killall -q -1 ceph-mon ceph-mgr ceph-mds ceph-osd ceph-fuse radosgw || pkill -1 -x "ceph-mon|ceph-mgr|ceph-mds|ceph-osd|ceph-fuse|radosgw" || true endscript missingok notifempty -- 2.47.3