Allow cinder role to pull images
Change-Id: Ia2e6e3c8371f7b26fb0c77989482d241567e52d1 Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
eda2b56e3c
commit
912bce7b3e
27
ansible/roles/cinder/tasks/deploy.yml
Normal file
27
ansible/roles/cinder/tasks/deploy.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
- include: ceph.yml
|
||||||
|
when:
|
||||||
|
- enable_ceph | bool
|
||||||
|
- inventory_hostname in groups['ceph-mon'] or
|
||||||
|
inventory_hostname in groups['cinder-api'] or
|
||||||
|
inventory_hostname in groups['cinder-volume'] or
|
||||||
|
inventory_hostname in groups['cinder-scheduler'] or
|
||||||
|
inventory_hostname in groups['cinder-backup']
|
||||||
|
|
||||||
|
- include: register.yml
|
||||||
|
when: inventory_hostname in groups['cinder-api']
|
||||||
|
|
||||||
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['cinder-api'] or
|
||||||
|
inventory_hostname in groups['cinder-volume'] or
|
||||||
|
inventory_hostname in groups['cinder-scheduler'] or
|
||||||
|
inventory_hostname in groups['cinder-backup']
|
||||||
|
|
||||||
|
- include: bootstrap.yml
|
||||||
|
when: inventory_hostname in groups['cinder-api']
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
when: inventory_hostname in groups['cinder-api'] or
|
||||||
|
inventory_hostname in groups['cinder-volume'] or
|
||||||
|
inventory_hostname in groups['cinder-scheduler'] or
|
||||||
|
inventory_hostname in groups['cinder-backup']
|
@ -1,27 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include: ceph.yml
|
- include: "{{ action }}.yml"
|
||||||
when:
|
|
||||||
- enable_ceph | bool
|
|
||||||
- inventory_hostname in groups['ceph-mon'] or
|
|
||||||
inventory_hostname in groups['cinder-api'] or
|
|
||||||
inventory_hostname in groups['cinder-volume'] or
|
|
||||||
inventory_hostname in groups['cinder-scheduler'] or
|
|
||||||
inventory_hostname in groups['cinder-backup']
|
|
||||||
|
|
||||||
- include: register.yml
|
|
||||||
when: inventory_hostname in groups['cinder-api']
|
|
||||||
|
|
||||||
- include: config.yml
|
|
||||||
when: inventory_hostname in groups['cinder-api'] or
|
|
||||||
inventory_hostname in groups['cinder-volume'] or
|
|
||||||
inventory_hostname in groups['cinder-scheduler'] or
|
|
||||||
inventory_hostname in groups['cinder-backup']
|
|
||||||
|
|
||||||
- include: bootstrap.yml
|
|
||||||
when: inventory_hostname in groups['cinder-api']
|
|
||||||
|
|
||||||
- include: start.yml
|
|
||||||
when: inventory_hostname in groups['cinder-api'] or
|
|
||||||
inventory_hostname in groups['cinder-volume'] or
|
|
||||||
inventory_hostname in groups['cinder-scheduler'] or
|
|
||||||
inventory_hostname in groups['cinder-backup']
|
|
||||||
|
28
ansible/roles/cinder/tasks/pull.yml
Normal file
28
ansible/roles/cinder/tasks/pull.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
- name: Pulling cinder-api image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ cinder_api_image_full }}"
|
||||||
|
when: inventory_hostname in groups['cinder-api']
|
||||||
|
|
||||||
|
- name: Pulling cinder-backup image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ cinder_backup_image_full }}"
|
||||||
|
when: inventory_hostname in groups['cinder-backup']
|
||||||
|
|
||||||
|
- name: Pulling cinder-scheduler image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ cinder_scheduler_image_full }}"
|
||||||
|
when: inventory_hostname in groups['cinder-scheduler']
|
||||||
|
|
||||||
|
- name: Pulling cinder-volume image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ cinder_volume_image_full }}"
|
||||||
|
when: inventory_hostname in groups['cinder-volume']
|
Loading…
Reference in New Issue
Block a user