Allow ceph role to pull images
Change-Id: I7176bdc897e07f28684eedffb3c59e407eba322e Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
462e8a3b6e
commit
cba75b4084
21
ansible/roles/ceph/tasks/deploy.yml
Normal file
21
ansible/roles/ceph/tasks/deploy.yml
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
- include: config.yml
|
||||
|
||||
- include: bootstrap_mons.yml
|
||||
when: inventory_hostname in groups['ceph-mon']
|
||||
|
||||
- include: distribute_keyrings.yml
|
||||
|
||||
- include: start_mons.yml
|
||||
when: inventory_hostname in groups['ceph-mon']
|
||||
|
||||
- include: bootstrap_osds.yml
|
||||
when: inventory_hostname in groups['ceph-osd']
|
||||
|
||||
- include: start_osds.yml
|
||||
when: inventory_hostname in groups['ceph-osd']
|
||||
|
||||
- include: start_rgws.yml
|
||||
when:
|
||||
- inventory_hostname in groups['ceph-rgw']
|
||||
- enable_ceph_rgw | bool
|
@ -1,21 +1,2 @@
|
||||
---
|
||||
- include: config.yml
|
||||
|
||||
- include: bootstrap_mons.yml
|
||||
when: inventory_hostname in groups['ceph-mon']
|
||||
|
||||
- include: distribute_keyrings.yml
|
||||
|
||||
- include: start_mons.yml
|
||||
when: inventory_hostname in groups['ceph-mon']
|
||||
|
||||
- include: bootstrap_osds.yml
|
||||
when: inventory_hostname in groups['ceph-osd']
|
||||
|
||||
- include: start_osds.yml
|
||||
when: inventory_hostname in groups['ceph-osd']
|
||||
|
||||
- include: start_rgws.yml
|
||||
when:
|
||||
- inventory_hostname in groups['ceph-rgw']
|
||||
- enable_ceph_rgw | bool
|
||||
- include: "{{ action }}.yml"
|
||||
|
21
ansible/roles/ceph/tasks/pull.yml
Normal file
21
ansible/roles/ceph/tasks/pull.yml
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: Pulling ceph-mon image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ ceph_mon_image_full }}"
|
||||
when: inventory_hostname in groups['ceph-mon']
|
||||
|
||||
- name: Pulling ceph-osd image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ ceph_osd_image_full }}"
|
||||
when: inventory_hostname in groups['ceph-osd']
|
||||
|
||||
- name: Pulling ceph-rgw image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ ceph_rgw_image_full }}"
|
||||
when: inventory_hostname in groups['ceph-rgw']
|
Loading…
Reference in New Issue
Block a user