Allow heat role to pull images
Change-Id: Idce62ce7c1c10c53e8e42091d6c47da4b770c261 Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
e435042b9b
commit
260187c6fa
16
ansible/roles/heat/tasks/deploy.yml
Normal file
16
ansible/roles/heat/tasks/deploy.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- include: register.yml
|
||||||
|
when: inventory_hostname in groups['heat-api']
|
||||||
|
|
||||||
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['heat-api'] or
|
||||||
|
inventory_hostname in groups['heat-api-cfn'] or
|
||||||
|
inventory_hostname in groups['heat-engine']
|
||||||
|
|
||||||
|
- include: bootstrap.yml
|
||||||
|
when: inventory_hostname in groups['heat-api']
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
when: inventory_hostname in groups['heat-api'] or
|
||||||
|
inventory_hostname in groups['heat-api-cfn'] or
|
||||||
|
inventory_hostname in groups['heat-engine']
|
@ -1,16 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include: register.yml
|
- include: "{{ action }}.yml"
|
||||||
when: inventory_hostname in groups['heat-api']
|
|
||||||
|
|
||||||
- include: config.yml
|
|
||||||
when: inventory_hostname in groups['heat-api'] or
|
|
||||||
inventory_hostname in groups['heat-api-cfn'] or
|
|
||||||
inventory_hostname in groups['heat-engine']
|
|
||||||
|
|
||||||
- include: bootstrap.yml
|
|
||||||
when: inventory_hostname in groups['heat-api']
|
|
||||||
|
|
||||||
- include: start.yml
|
|
||||||
when: inventory_hostname in groups['heat-api'] or
|
|
||||||
inventory_hostname in groups['heat-api-cfn'] or
|
|
||||||
inventory_hostname in groups['heat-engine']
|
|
||||||
|
21
ansible/roles/heat/tasks/pull.yml
Normal file
21
ansible/roles/heat/tasks/pull.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
- name: Pulling heat-api image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ heat_api_image_full }}"
|
||||||
|
when: inventory_hostname in groups['heat-api']
|
||||||
|
|
||||||
|
- name: Pulling heat-api-cfn image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ heat_api_cfn_image_full }}"
|
||||||
|
when: inventory_hostname in groups['heat-api-cfn']
|
||||||
|
|
||||||
|
- name: Pulling heat-engine image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ heat_engine_image_full }}"
|
||||||
|
when: inventory_hostname in groups['heat-engine']
|
Loading…
Reference in New Issue
Block a user