Skip to content
Snippets Groups Projects
Commit 7b38a56c authored by Chris MacNaughton's avatar Chris MacNaughton
Browse files

Remove /var/lib/ceph from updatedb

This stops updatedb from indexing the storage locations

Change-Id: Idd77f0fc087a06af874d2865bfec8c319a0b15dd
Closes-bug: 1520226
parent a60775be
No related branches found
No related tags found
No related merge requests found
# This file is owned by the Ceph charm and could be replaced at any time
PRUNE_BIND_MOUNTS="yes"
# PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs /var/lib/schroot /var/lib/ceph"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs"
......@@ -44,6 +44,7 @@ from charmhelpers.core.host import (
umount,
mkdir,
cmp_pkgrevno,
rsync,
service_reload,
service_restart)
from charmhelpers.fetch import (
......@@ -327,6 +328,10 @@ def config_changed():
umount(e_mountpoint)
prepare_disks_and_activate()
install_apparmor_profile()
script = os.path.join('/etc', 'updatedb.conf')
rsync(os.path.join(os.getenv('CHARM_DIR'), 'files',
'updatedb.conf'),
script)
@hooks.hook('storage.real')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment