diff options
| author | Mauricio Lima <mauriciolimab@gmail.com> | 2016-04-08 14:40:25 -0400 |
|---|---|---|
| committer | Mauricio Lima <mauriciolimab@gmail.com> | 2016-04-19 10:00:59 -0400 |
| commit | 8588bd655e6160f0ce4f98eab2f3bd15afffc8c4 (patch) | |
| tree | df728243067f362760eb3c8d94765b5928bc6fd4 /tools | |
| parent | fda9444ea63ec436e7598ebb4ce221db0dd5d97d (diff) | |
| download | kolla-8588bd655e6160f0ce4f98eab2f3bd15afffc8c4.tar.gz kolla-8588bd655e6160f0ce4f98eab2f3bd15afffc8c4.zip | |
Add a role to cleanup containers after deployment
Change-Id: I5f422574d7e50ec9a1e5862b66ecbf39fe1594d2
Closes-Bug: #1531721
Implements: blueprint ansible-cleanup-role
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/kolla-ansible | 5 |
1 files changed, 5 insertions, 0 deletions
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" |
