Cleanup images as part of kolla-ansible cleanup

TrivialFix

Change-Id: I88004f08c75e7d648a615e64d59ccf655b6a1a13
This commit is contained in:
Paul Bourke 2016-07-15 14:42:22 +01:00
parent 5ce4de6b2b
commit 810b7e460b
5 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,2 @@
---
cleanup_include_images: no

View File

@ -0,0 +1,5 @@
---
- name: Cleaning Kolla images
command: /tmp/kolla-cleanup/tools/cleanup-images
when:
- cleanup_include_images | bool

View File

@ -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

View File

@ -3,4 +3,6 @@
- include: cleanup_containers.yml
- include: cleanup_images.yml
- include: cleanup_host.yml

View File

@ -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