From a4f796e51aa3a19bf33752d5bd32782b406ed88d Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Mon, 19 Feb 2018 18:13:21 +0000 Subject: [PATCH] Adjust /etc/updatedb.conf to not parse /var/lib/ceph Using updatedb -e doesnt make a permanent change, but will updatedb without the passed path. To make this change more permanent we should update the /etc/updatedb.conf file to include /var/lib/ceph. (cherry picked from commit 2779d2a850265d01b62b9d8b4db7c2b4ce8b8fec) --- roles/ceph-common/tasks/misc/system_tuning.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/ceph-common/tasks/misc/system_tuning.yml b/roles/ceph-common/tasks/misc/system_tuning.yml index 0aeced9ff..b45c4e862 100644 --- a/roles/ceph-common/tasks/misc/system_tuning.yml +++ b/roles/ceph-common/tasks/misc/system_tuning.yml @@ -6,6 +6,15 @@ when: - osd_objectstore == 'filestore' +- name: disable osd directory path in updatedb.conf + replace: + dest: /etc/updatedb.conf + regexp: '^(PRUNEPATHS(?!.*/var/lib/ceph).*)"$' + replace: '\1 /var/lib/ceph"' + failed_when: false + when: + - osd_objectstore == 'filestore' + - name: create tmpfiles.d directory file: path: "/etc/tmpfiles.d" -- 2.39.5