]> git.apps.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>
Tue, 20 Feb 2018 10:32:56 +0000 (11:32 +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.

roles/ceph-common/tasks/misc/system_tuning.yml

index 82cd88d31c86ba1356d9addd2287dcbd59ff9b28..4a7d3097bf69486e82f1b5359f3558a0a9e369c5 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"