Skip to content
Snippets Groups Projects
Commit 462e8a3b authored by SamYaple's avatar SamYaple
Browse files

Allow common role to pull images

Change-Id: I3de01770eca6b7e681b7964a6d6e15564065aaea
Partially-Implements: blueprint pre-pull-images
parent 58daa10a
No related branches found
No related tags found
No related merge requests found
---
- include: config.yml
- include: start.yml
--- ---
- include: config.yml - include: "{{ action }}.yml"
- include: start.yml
---
- 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 }}"
...@@ -34,6 +34,7 @@ Options: ...@@ -34,6 +34,7 @@ Options:
Commands: Commands:
deploy Deploy and start all kolla containers deploy Deploy and start all kolla containers
pull Pull all images for containers (only pulls, no runnnig container changes)
EOF EOF
} }
...@@ -79,8 +80,12 @@ done ...@@ -79,8 +80,12 @@ done
case "$1" in case "$1" in
(deploy) (deploy)
ACTION="Deploying Playbook" ACTION="Deploying Playbooks"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK" 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 (*) usage
......
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