Merge "Cleanup images as part of kolla-ansible cleanup"

This commit is contained in:
Jenkins 2016-08-05 03:34:19 +00:00 committed by Gerrit Code Review
commit 086cc02e90
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