From 8588bd655e6160f0ce4f98eab2f3bd15afffc8c4 Mon Sep 17 00:00:00 2001 From: Mauricio Lima Date: Fri, 8 Apr 2016 14:40:25 -0400 Subject: Add a role to cleanup containers after deployment Change-Id: I5f422574d7e50ec9a1e5862b66ecbf39fe1594d2 Closes-Bug: #1531721 Implements: blueprint ansible-cleanup-role --- tools/kolla-ansible | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/kolla-ansible b/tools/kolla-ansible index 36ecc0397..413df9c62 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 runnnig container changes) reconfigure Reconfigure OpenStack service @@ -131,6 +132,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" -- cgit v1.2.3