Skip to content
Snippets Groups Projects
Commit 661c6a05 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Change cleanup to destroy as cleanup is a misnomer"

parents 969fccde 6d45786d
No related branches found
No related tags found
No related merge requests found
---
- hosts: all
roles:
- cleanup
- destroy
---
cleanup_include_images: no
---
destroy_include_images: no
---
- name: Cleaning all containers and volumes
- name: Destroying all Kolla containers and volumes
command: /tmp/kolla-cleanup/tools/cleanup-containers
---
- name: Cleaning host
- name: Destroying Kolla host configuration
command: /tmp/kolla-cleanup/tools/cleanup-host
- name: Removing kolla-cleanup folder
- name: Destroying kolla-cleanup folder
file:
path: /tmp/kolla-cleanup
state: absent
---
- name: Cleaning Kolla images
- name: Destroying Kolla images
command: /tmp/kolla-cleanup/tools/cleanup-images
when:
- cleanup_include_images | bool
- destroy_include_images | bool
......@@ -28,4 +28,4 @@
dest: /tmp/kolla-cleanup/tools
mode: 0755
when:
- cleanup_include_images | bool
- destroy_include_images | bool
......@@ -42,8 +42,8 @@ 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
('-e cleanup_include_images=yes' to also remove Kolla images)
destroy Destroy Kolla containers, volumes and host configuration
('-e destroy_include_images=yes' to also destroy Kolla images)
post-deploy Do post deploy on deploy node
pull Pull all images for containers (only pulls, no running container changes)
reconfigure Reconfigure OpenStack service
......@@ -140,9 +140,9 @@ 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"
(destroy)
ACTION="Destroy Kolla containers, volumes and host configuration"
PLAYBOOK="${BASEDIR}/ansible/destroy.yml"
;;
(deploy)
ACTION="Deploying Playbooks"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment