aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-host
diff options
context:
space:
mode:
authorjimmygc <guochao@winhong.com>2017-03-31 16:17:40 +0800
committerPaul Bourke <paul.bourke@oracle.com>2017-07-10 14:46:22 +0100
commitf70dfc5dc3203e2138ca01d4c66d195f7fd66e93 (patch)
treec2304261341f2474cf40a869193881748f185309 /tools/cleanup-host
parent4510c525a684bb9733ee67b13e0d6779ee36c139 (diff)
downloadkolla-ansible-f70dfc5dc3203e2138ca01d4c66d195f7fd66e93.tar.gz
kolla-ansible-f70dfc5dc3203e2138ca01d4c66d195f7fd66e93.zip
Make glance filesystem_store_datadir configurable.
User can use custom directory to store images. For example using a shared file system as backend. Change-Id: Iab7a9a51e619bdbf8f7bd4626ebe4d703e6d4819
Diffstat (limited to 'tools/cleanup-host')
-rwxr-xr-xtools/cleanup-host5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host
index bf7584d3c..0cf4a69b1 100755
--- a/tools/cleanup-host
+++ b/tools/cleanup-host
@@ -51,6 +51,11 @@ if [[ "$enable_swift" == "yes" ]]; then
sed -i '/\/srv\/node\//d' /etc/fstab
fi
+if [[ "$glance_file_datadir_volume" != "glance" && -d "$glance_file_datadir_volume" ]]; then
+ echo "Removing glance volume if it is customzied"
+ rm -rfv $glance_file_datadir_volume
+fi
+
echo "Getting folders name..."
FOLDER_PATH="/etc/kolla/"
for dir in $FOLDER_PATH*; do