Allow ironic role to pull images

Change-Id: Ib3c71d89f8e20d58d44034a215140a35c6874a2b
Partially-Implements: blueprint pre-pull-images
This commit is contained in:
SamYaple 2016-01-05 17:57:55 +00:00
parent 715942ce30
commit b7aca3f90e
3 changed files with 47 additions and 17 deletions

View 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']

View File

@ -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']

View 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']