Allow mistral role to pull images
Change-Id: Id5e56f62dff4fc7bc52641a56abab3ee88a25740 Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
e5af3536b5
commit
0995a40100
16
ansible/roles/mistral/tasks/deploy.yml
Normal file
16
ansible/roles/mistral/tasks/deploy.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- include: register.yml
|
||||||
|
when: inventory_hostname in groups['mistral-api']
|
||||||
|
|
||||||
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['mistral-api'] or
|
||||||
|
inventory_hostname in groups['mistral-engine'] or
|
||||||
|
inventory_hostname in groups['mistral-executor']
|
||||||
|
|
||||||
|
- include: bootstrap.yml
|
||||||
|
when: inventory_hostname in groups['mistral-api']
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
when: inventory_hostname in groups['mistral-api'] or
|
||||||
|
inventory_hostname in groups['mistral-engine'] or
|
||||||
|
inventory_hostname in groups['mistral-executor']
|
@ -1,16 +1,8 @@
|
|||||||
---
|
---
|
||||||
- include: register.yml
|
- include: "{{ action }}.yml"
|
||||||
when: inventory_hostname in groups['mistral-api']
|
when: not common_run
|
||||||
|
|
||||||
- include: config.yml
|
- name: Registering common role has run
|
||||||
when: inventory_hostname in groups['mistral-api'] or
|
set_fact:
|
||||||
inventory_hostname in groups['mistral-engine'] or
|
common_run: True
|
||||||
inventory_hostname in groups['mistral-executor']
|
when: not common_run
|
||||||
|
|
||||||
- include: bootstrap.yml
|
|
||||||
when: inventory_hostname in groups['mistral-api']
|
|
||||||
|
|
||||||
- include: start.yml
|
|
||||||
when: inventory_hostname in groups['mistral-api'] or
|
|
||||||
inventory_hostname in groups['mistral-engine'] or
|
|
||||||
inventory_hostname in groups['mistral-executor']
|
|
||||||
|
21
ansible/roles/mistral/tasks/pull.yml
Normal file
21
ansible/roles/mistral/tasks/pull.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
- name: Pulling mistral-api image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ mistral_api_image_full }}"
|
||||||
|
when: inventory_hostname in groups['mistral-api']
|
||||||
|
|
||||||
|
- name: Pulling mistral-engine image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ mistral_engine_image_full }}"
|
||||||
|
when: inventory_hostname in groups['mistral-engine']
|
||||||
|
|
||||||
|
- name: Pulling mistral-executor image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ mistral_executorngine_image_full }}"
|
||||||
|
when: inventory_hostname in groups['mistral-executor']
|
Loading…
x
Reference in New Issue
Block a user