Allow ironic role to pull images
Change-Id: Ib3c71d89f8e20d58d44034a215140a35c6874a2b Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
715942ce30
commit
b7aca3f90e
18
ansible/roles/ironic/tasks/deploy.yml
Normal file
18
ansible/roles/ironic/tasks/deploy.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
- include: register.yml
|
||||||
|
when: inventory_hostname in groups['ironic-api']
|
||||||
|
|
||||||
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['ironic-api'] or
|
||||||
|
inventory_hostname in groups['ironic-conductor'] or
|
||||||
|
inventory_hostname in groups['ironic-discoverd'] or
|
||||||
|
inventory_hostname in groups['ironic-pxe']
|
||||||
|
|
||||||
|
- include: bootstrap.yml
|
||||||
|
when: inventory_hostname in groups['ironic-api']
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
when: inventory_hostname in groups['ironic-api'] or
|
||||||
|
inventory_hostname in groups['ironic-conductor'] or
|
||||||
|
inventory_hostname in groups['ironic-discoverd'] or
|
||||||
|
inventory_hostname in groups['ironic-pxe']
|
@ -1,18 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include: register.yml
|
- include: "{{ action }}.yml"
|
||||||
when: inventory_hostname in groups['ironic-api']
|
|
||||||
|
|
||||||
- include: config.yml
|
|
||||||
when: inventory_hostname in groups['ironic-api'] or
|
|
||||||
inventory_hostname in groups['ironic-conductor'] or
|
|
||||||
inventory_hostname in groups['ironic-discoverd'] or
|
|
||||||
inventory_hostname in groups['ironic-pxe']
|
|
||||||
|
|
||||||
- include: bootstrap.yml
|
|
||||||
when: inventory_hostname in groups['ironic-api']
|
|
||||||
|
|
||||||
- include: start.yml
|
|
||||||
when: inventory_hostname in groups['ironic-api'] or
|
|
||||||
inventory_hostname in groups['ironic-conductor'] or
|
|
||||||
inventory_hostname in groups['ironic-discoverd'] or
|
|
||||||
inventory_hostname in groups['ironic-pxe']
|
|
||||||
|
28
ansible/roles/ironic/tasks/pull.yml
Normal file
28
ansible/roles/ironic/tasks/pull.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
- name: Pulling ironic-api image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ ironic_api_image_full }}"
|
||||||
|
when: inventory_hostname in groups['ironic-api']
|
||||||
|
|
||||||
|
- name: Pulling ironic-conductor image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ ironic_conductor_image_full }}"
|
||||||
|
when: inventory_hostname in groups['ironic-conductor']
|
||||||
|
|
||||||
|
- name: Pulling ironic-discoverd image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ ironic_discoverd_image_full }}"
|
||||||
|
when: inventory_hostname in groups['ironic-discoverd']
|
||||||
|
|
||||||
|
- name: Pulling ironic-pxe image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ ironic_pxe_image_full }}"
|
||||||
|
when: inventory_hostname in groups['ironic-pxe']
|
Loading…
Reference in New Issue
Block a user