Allow magnum role to pull images

Change-Id: Ia7a0bb934827f37af6091895b95ece95a9e3c874
Partially-Implements: blueprint pre-pull-images
This commit is contained in:
SamYaple 2016-01-05 18:03:00 +00:00
parent 9efc593c8f
commit 06356a8b0f
3 changed files with 29 additions and 13 deletions

View File

@ -0,0 +1,14 @@
---
- include: register.yml
when: inventory_hostname in groups['magnum-api']
- include: config.yml
when: inventory_hostname in groups['magnum-api'] or
inventory_hostname in groups['magnum-conductor']
- include: bootstrap.yml
when: inventory_hostname in groups['magnum-api']
- include: start.yml
when: inventory_hostname in groups['magnum-api'] or
inventory_hostname in groups['magnum-conductor']

View File

@ -1,14 +1,2 @@
---
- include: register.yml
when: inventory_hostname in groups['magnum-api']
- include: config.yml
when: inventory_hostname in groups['magnum-api'] or
inventory_hostname in groups['magnum-conductor']
- include: bootstrap.yml
when: inventory_hostname in groups['magnum-api']
- include: start.yml
when: inventory_hostname in groups['magnum-api'] or
inventory_hostname in groups['magnum-conductor']
- include: "{{ action }}.yml"

View File

@ -0,0 +1,14 @@
---
- name: Pulling magnum-api image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ magnum_api_image_full }}"
when: inventory_hostname in groups['magnum-api']
- name: Pulling magnum-conductor image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ magnum_conductor_image_full }}"
when: inventory_hostname in groups['magnum-conductor']