aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-host
diff options
context:
space:
mode:
authorDoug Szumski <doug@stackhpc.com>2020-03-26 20:42:58 +0000
committerPierre Riteau <pierre@stackhpc.com>2020-03-30 11:00:03 +0200
commitb758883418d1ea728bfd2bf482824f83f4b82782 (patch)
tree9181f0ea60e3abfe32f845daa91bca33c8f06418 /tools/cleanup-host
parent565917702669c689297198b4648962b07e9aaf63 (diff)
downloadkolla-ansible-b758883418d1ea728bfd2bf482824f83f4b82782.tar.gz
kolla-ansible-b758883418d1ea728bfd2bf482824f83f4b82782.zip
Support setting Kafka storage volume
Not everyone wants Kafka data stored on a Docker volume. This change allows a user to flexibly control where the data is stored. Change-Id: I2ba8c7a85c7bf2564f954a43c6e6dbb3257fe902
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 25dfc176a..0994c4193 100755
--- a/tools/cleanup-host
+++ b/tools/cleanup-host
@@ -68,6 +68,11 @@ if [[ "$influxdb_datadir_volume" != "influxdb" && -d "$influxdb_datadir_volume"
rm -rfv $influxdb_datadir_volume
fi
+if [[ "$kafka_datadir_volume" != "kafka" && -d "$kafka_datadir_volume" ]]; then
+ echo "Removing kafka volume if it is customised"
+ rm -rfv $kafka_datadir_volume
+fi
+
FOLDER_PATH="/etc/kolla/"
if [[ -e "$FOLDER_PATH/ovsdpdk-db/ovs-dpdkctl.sh" ]]; then