From: David Galloway Date: Tue, 16 Apr 2019 19:21:15 +0000 (-0400) Subject: long_running_cluster: Keep fewer logs & update postrotate X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5605544a5da50cc2fdba3d2bed3fde5a8467db07;p=ceph-cm-ansible.git 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 --- 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