Merge "Remove /etc/kolla configuration folders"

This commit is contained in:
Jenkins 2016-04-12 09:28:31 +00:00 committed by Gerrit Code Review
commit e3e5232bc3

View File

@ -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