aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-04-27 17:21:46 +0000
committerGerrit Code Review <review@openstack.org>2016-04-27 17:21:46 +0000
commita22b7714e3147a4938b3a69d84640f847653ecbe (patch)
tree6fb165812b8201a8bc90c24c4e0ecbe29df5a8a2 /tools
parent9610ce7a9ecb8e191a5a998b8a8dfafd7e918085 (diff)
parent8588bd655e6160f0ce4f98eab2f3bd15afffc8c4 (diff)
downloadkolla-a22b7714e3147a4938b3a69d84640f847653ecbe.tar.gz
kolla-a22b7714e3147a4938b3a69d84640f847653ecbe.zip
Merge "Add a role to cleanup containers after deployment"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kolla-ansible5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index 10403b344..365485e33 100755
--- a/tools/kolla-ansible
+++ b/tools/kolla-ansible
@@ -41,6 +41,7 @@ Commands:
prechecks Do pre-deployment checks for hosts
mariadb_recovery Recover a completely stopped mariadb cluster
deploy Deploy and start all kolla containers
+ cleanup Cleanup containers, volumes and host
post-deploy Do post deploy on deploy node
pull Pull all images for containers (only pulls, no running container changes)
reconfigure Reconfigure OpenStack service
@@ -132,6 +133,10 @@ case "$1" in
EXTRA_OPTS="$EXTRA_OPTS -e action=deploy"
PLAYBOOK="${BASEDIR}/ansible/mariadb_recovery.yml"
;;
+(cleanup)
+ ACTION="Cleanup containers, volumes and host"
+ PLAYBOOK="${BASEDIR}/ansible/cleanup.yml"
+ ;;
(deploy)
ACTION="Deploying Playbooks"
EXTRA_OPTS="$EXTRA_OPTS -e action=deploy"