diff options
| author | Borne Mace <borne.mace@oracle.com> | 2018-06-07 13:44:24 -0700 |
|---|---|---|
| committer | Borne Mace <borne.mace@oracle.com> | 2018-06-07 13:44:24 -0700 |
| commit | c7c61fca06414735ed0bb3e62e90a098bd16be13 (patch) | |
| tree | 844515e50628cf6ab6e2cb0a59a27f958316dbd5 /tools/cleanup-host | |
| parent | e88b9a7ad491e0c1b4575d1eb86d37e4e7cf55e7 (diff) | |
| download | kolla-ansible-c7c61fca06414735ed0bb3e62e90a098bd16be13.tar.gz kolla-ansible-c7c61fca06414735ed0bb3e62e90a098bd16be13.zip | |
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
Diffstat (limited to 'tools/cleanup-host')
| -rwxr-xr-x | tools/cleanup-host | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host index b0917e1e3..d9ea76808 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -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 |
