Cleanup images as part of kolla-ansible cleanup
TrivialFix Change-Id: I88004f08c75e7d648a615e64d59ccf655b6a1a13
This commit is contained in:
parent
5ce4de6b2b
commit
810b7e460b
2
ansible/roles/cleanup/defaults/main.yml
Normal file
2
ansible/roles/cleanup/defaults/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
cleanup_include_images: no
|
5
ansible/roles/cleanup/tasks/cleanup_images.yml
Normal file
5
ansible/roles/cleanup/tasks/cleanup_images.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Cleaning Kolla images
|
||||
command: /tmp/kolla-cleanup/tools/cleanup-images
|
||||
when:
|
||||
- cleanup_include_images | bool
|
@ -21,3 +21,11 @@
|
||||
src: ../tools/cleanup-host
|
||||
dest: /tmp/kolla-cleanup/tools
|
||||
mode: 0755
|
||||
|
||||
- name: Copying cleanup-images file
|
||||
copy:
|
||||
src: ../tools/cleanup-images
|
||||
dest: /tmp/kolla-cleanup/tools
|
||||
mode: 0755
|
||||
when:
|
||||
- cleanup_include_images | bool
|
||||
|
@ -3,4 +3,6 @@
|
||||
|
||||
- include: cleanup_containers.yml
|
||||
|
||||
- include: cleanup_images.yml
|
||||
|
||||
- include: cleanup_host.yml
|
||||
|
@ -43,6 +43,7 @@ Commands:
|
||||
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)
|
||||
post-deploy Do post deploy on deploy node
|
||||
pull Pull all images for containers (only pulls, no running container changes)
|
||||
reconfigure Reconfigure OpenStack service
|
||||
|
Loading…
Reference in New Issue
Block a user