]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Adjust /etc/updatedb.conf to not parse /var/lib/ceph
authorAndy McCrae <andy.mccrae@gmail.com>
Mon, 19 Feb 2018 18:13:21 +0000 (18:13 +0000)
committerSébastien Han <seb@redhat.com>
Fri, 23 Feb 2018 10:17:52 +0000 (11:17 +0100)
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

index 0aeced9ffc3343e65d95428afc607af01e513aee..b45c4e862c8c565922e88590b07628b06b69f7bc 100644 (file)
@@ -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"