Allow glance role to pull images
Change-Id: Ib5c22c7416bdc7ce83123b79fa7b08afda7595bc Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
912bce7b3e
commit
b60bb946d0
25
ansible/roles/glance/tasks/deploy.yml
Normal file
25
ansible/roles/glance/tasks/deploy.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
- include: ceph.yml
|
||||||
|
when:
|
||||||
|
- enable_ceph | bool
|
||||||
|
- inventory_hostname in groups['ceph-mon'] or
|
||||||
|
inventory_hostname in groups['glance-api'] or
|
||||||
|
inventory_hostname in groups['glance-registry']
|
||||||
|
|
||||||
|
- include: register.yml
|
||||||
|
when: inventory_hostname in groups['glance-api']
|
||||||
|
|
||||||
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['glance-api'] or
|
||||||
|
inventory_hostname in groups['glance-registry']
|
||||||
|
|
||||||
|
- include: bootstrap.yml
|
||||||
|
when: inventory_hostname in groups['glance-api']
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
when: inventory_hostname in groups['glance-api'] or
|
||||||
|
inventory_hostname in groups['glance-registry']
|
||||||
|
|
||||||
|
- include: check.yml
|
||||||
|
when: inventory_hostname in groups['glance-api'] or
|
||||||
|
inventory_hostname in groups['glance-registry']
|
@ -1,25 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include: ceph.yml
|
- include: "{{ action }}.yml"
|
||||||
when:
|
|
||||||
- enable_ceph | bool
|
|
||||||
- inventory_hostname in groups['ceph-mon'] or
|
|
||||||
inventory_hostname in groups['glance-api'] or
|
|
||||||
inventory_hostname in groups['glance-registry']
|
|
||||||
|
|
||||||
- include: register.yml
|
|
||||||
when: inventory_hostname in groups['glance-api']
|
|
||||||
|
|
||||||
- include: config.yml
|
|
||||||
when: inventory_hostname in groups['glance-api'] or
|
|
||||||
inventory_hostname in groups['glance-registry']
|
|
||||||
|
|
||||||
- include: bootstrap.yml
|
|
||||||
when: inventory_hostname in groups['glance-api']
|
|
||||||
|
|
||||||
- include: start.yml
|
|
||||||
when: inventory_hostname in groups['glance-api'] or
|
|
||||||
inventory_hostname in groups['glance-registry']
|
|
||||||
|
|
||||||
- include: check.yml
|
|
||||||
when: inventory_hostname in groups['glance-api'] or
|
|
||||||
inventory_hostname in groups['glance-registry']
|
|
||||||
|
14
ansible/roles/glance/tasks/pull.yml
Normal file
14
ansible/roles/glance/tasks/pull.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- name: Pulling glance-api image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ glance_api_image_full }}"
|
||||||
|
when: inventory_hostname in groups['glance-api']
|
||||||
|
|
||||||
|
- name: Pulling glance-registry image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ glance_registry_image_full }}"
|
||||||
|
when: inventory_hostname in groups['glance-registry']
|
Loading…
Reference in New Issue
Block a user