]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
long_running_cluster: Keep fewer logs & update postrotate 459/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 16 Apr 2019 19:21:15 +0000 (15:21 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 16 Apr 2019 19:21:15 +0000 (15:21 -0400)
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 <dgallowa@redhat.com>
roles/long_running_cluster/templates/ceph-common.logrotate

index 12fe9d1808dca1fea3ce3b429c4ce3ee4148960a..53d8239757d398cbc5c20af4e4c83ee034a2b25c 100644 (file)
@@ -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