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 - hosts: all
roles: 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 command: /tmp/kolla-cleanup/tools/cleanup-containers
--- ---
- name: Cleaning host - name: Destroying Kolla host configuration
command: /tmp/kolla-cleanup/tools/cleanup-host command: /tmp/kolla-cleanup/tools/cleanup-host
- name: Removing kolla-cleanup folder - name: Destroying kolla-cleanup folder
file: file:
path: /tmp/kolla-cleanup path: /tmp/kolla-cleanup
state: absent state: absent
--- ---
- name: Cleaning Kolla images - name: Destroying Kolla images
command: /tmp/kolla-cleanup/tools/cleanup-images command: /tmp/kolla-cleanup/tools/cleanup-images
when: when:
- cleanup_include_images | bool - destroy_include_images | bool
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
dest: /tmp/kolla-cleanup/tools dest: /tmp/kolla-cleanup/tools
mode: 0755 mode: 0755
when: when:
- cleanup_include_images | bool - destroy_include_images | bool
...@@ -42,8 +42,8 @@ Commands: ...@@ -42,8 +42,8 @@ Commands:
prechecks Do pre-deployment checks for hosts prechecks Do pre-deployment checks for hosts
mariadb_recovery Recover a completely stopped mariadb cluster mariadb_recovery Recover a completely stopped mariadb cluster
deploy Deploy and start all kolla containers deploy Deploy and start all kolla containers
cleanup Cleanup containers, volumes and host destroy Destroy Kolla containers, volumes and host configuration
('-e cleanup_include_images=yes' to also remove Kolla images) ('-e destroy_include_images=yes' to also destroy Kolla images)
post-deploy Do post deploy on deploy node post-deploy Do post deploy on deploy node
pull Pull all images for containers (only pulls, no running container changes) pull Pull all images for containers (only pulls, no running container changes)
reconfigure Reconfigure OpenStack service reconfigure Reconfigure OpenStack service
...@@ -140,9 +140,9 @@ case "$1" in ...@@ -140,9 +140,9 @@ case "$1" in
EXTRA_OPTS="$EXTRA_OPTS -e action=deploy" EXTRA_OPTS="$EXTRA_OPTS -e action=deploy"
PLAYBOOK="${BASEDIR}/ansible/mariadb_recovery.yml" PLAYBOOK="${BASEDIR}/ansible/mariadb_recovery.yml"
;; ;;
(cleanup) (destroy)
ACTION="Cleanup containers, volumes and host" ACTION="Destroy Kolla containers, volumes and host configuration"
PLAYBOOK="${BASEDIR}/ansible/cleanup.yml" PLAYBOOK="${BASEDIR}/ansible/destroy.yml"
;; ;;
(deploy) (deploy)
ACTION="Deploying Playbooks" 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