Allow common role to pull images

Change-Id: I3de01770eca6b7e681b7964a6d6e15564065aaea
Partially-Implements: blueprint pre-pull-images
This commit is contained in:
SamYaple 2016-01-01 04:14:53 +00:00
parent 58daa10ae3
commit 462e8a3b6e
4 changed files with 24 additions and 5 deletions

View File

@ -0,0 +1,4 @@
---
- include: config.yml
- include: start.yml

View File

@ -1,4 +1,2 @@
---
- include: config.yml
- include: start.yml
- include: "{{ action }}.yml"

View File

@ -0,0 +1,12 @@
---
- name: Pulling rsyslog image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ rsyslog_image_full }}"
- name: Pulling kolla-ansible image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ ansible_image_full }}"

View File

@ -34,6 +34,7 @@ Options:
Commands:
deploy Deploy and start all kolla containers
pull Pull all images for containers (only pulls, no runnnig container changes)
EOF
}
@ -79,8 +80,12 @@ done
case "$1" in
(deploy)
ACTION="Deploying Playbook"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK"
ACTION="Deploying Playbooks"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=deploy"
;;
(pull)
ACTION="Pulling Docker images"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=pull"
;;
(*) usage