diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-04-12 09:28:31 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-04-12 09:28:31 +0000 |
| commit | e3e5232bc3eec9b89ab7aba21957f7e7d6faeaba (patch) | |
| tree | 25c65285593af0b862f7f7ca0aea715893f8d46f /tools | |
| parent | 37e981da735126220039b1938239b32595f7600e (diff) | |
| parent | 4ce13676425250df1f56be40446a14c1316247c3 (diff) | |
| download | kolla-e3e5232bc3eec9b89ab7aba21957f7e7d6faeaba.tar.gz kolla-e3e5232bc3eec9b89ab7aba21957f7e7d6faeaba.zip | |
Merge "Remove /etc/kolla configuration folders"
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/cleanup-host | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host index 5bb357c4a..75ed47bd3 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -32,3 +32,15 @@ sudo cp /etc/fstab /etc/fstab_backup echo "Removing ceph references from fstab..." sudo sed -i '/\/var\/lib\/ceph\/osd\//d' /etc/fstab + +echo "Getting folders name..." +FOLDER_PATH="/etc/kolla/" +for dir in $FOLDER_PATH*; do + if [ "$dir" == "$FOLDER_PATH""passwords.yml" ] || \ + [ "$dir" == "$FOLDER_PATH""globals.yml" ] || \ + [ "$dir" == "$FOLDER_PATH""config" ]; then + echo "Skipping:" $dir + else + rm -rfv $dir + fi +done |
