Skip to content
Snippets Groups Projects
Commit c7c61fca authored by Borne Mace's avatar Borne Mace
Browse files

Avoid removing kolla-cli directories on destroy

When running the kolla-ansible destroy playbook most of the files
under /etc/kolla are cleaned up.  This change will cause the
clean-up to skip the kolla-cli related directories.  When running
the deployment code in a container or a separate VM this is not
an issue, but when doing an all-in-one or running the deployment
process from one of the systems being deployed onto it would have
previously destroyed the kolla-cli inventory and any generated
certificates used for TLS.

Change-Id: Icd62e177964b8fb31052131785c6d7b138975a28
parent e88b9a7a
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,9 @@ for dir in $FOLDER_PATH*; do
if [ "$dir" == "$FOLDER_PATH""passwords.yml" ] || \
[ "$dir" == "$FOLDER_PATH""globals.yml" ] || \
[ "$dir" == "$FOLDER_PATH""kolla-build.conf" ] || \
[ "$dir" == "$FOLDER_PATH""config" ]; then
[ "$dir" == "$FOLDER_PATH""config" ] || \
[ "$dir" == "$FOLDER_PATH""kolla-cli" ] || \
[ "$dir" == "$FOLDER_PATH""certificates" ]; then
echo "Skipping:" $dir
else
rm -rfv $dir
......
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