Allow magnum role to pull images
Change-Id: Ia7a0bb934827f37af6091895b95ece95a9e3c874 Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
9efc593c8f
commit
06356a8b0f
14
ansible/roles/magnum/tasks/deploy.yml
Normal file
14
ansible/roles/magnum/tasks/deploy.yml
Normal 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']
|
@ -1,14 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include: register.yml
|
- include: "{{ action }}.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']
|
|
||||||
|
14
ansible/roles/magnum/tasks/pull.yml
Normal file
14
ansible/roles/magnum/tasks/pull.yml
Normal 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']
|
Loading…
Reference in New Issue
Block a user