2014-03-06 20:54:37 +08:00
|
|
|
---
|
2018-04-11 23:15:29 +08:00
|
|
|
- name: include common.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: common.yml
|
2018-04-11 23:15:29 +08:00
|
|
|
|
2018-08-10 20:16:30 +08:00
|
|
|
- name: include_tasks pre_requisite.yml
|
|
|
|
include_tasks: pre_requisite.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: not containerized_deployment | bool
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2018-08-10 20:16:30 +08:00
|
|
|
- name: include_tasks openstack-keystone.yml
|
|
|
|
include_tasks: openstack-keystone.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: radosgw_keystone_ssl | bool
|
2016-08-08 11:16:15 +08:00
|
|
|
|
2018-08-10 20:16:30 +08:00
|
|
|
- name: include_tasks start_radosgw.yml
|
|
|
|
include_tasks: start_radosgw.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: not containerized_deployment | bool
|
2016-08-17 02:57:01 +08:00
|
|
|
|
2019-09-30 15:40:56 +08:00
|
|
|
- name: include start_docker_rgw.yml
|
|
|
|
include_tasks: start_docker_rgw.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: containerized_deployment | bool
|
2018-06-01 23:33:54 +08:00
|
|
|
|
2018-10-29 23:37:12 +08:00
|
|
|
- name: include_tasks multisite/main.yml
|
|
|
|
include_tasks: multisite/main.yml
|
2019-05-22 16:02:42 +08:00
|
|
|
when: rgw_multisite | bool
|
2018-10-29 23:37:12 +08:00
|
|
|
|
2019-03-25 22:10:23 +08:00
|
|
|
- name: rgw pool related tasks
|
2019-04-01 23:46:15 +08:00
|
|
|
when: rgw_create_pools is defined
|
2018-10-01 23:11:13 +08:00
|
|
|
block:
|
|
|
|
- name: create rgw pools if rgw_create_pools is defined
|
2019-05-14 20:51:32 +08:00
|
|
|
command: "{{ container_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd pool create {{ item.key }} {{ item.value.pg_num | default(osd_pool_default_pg_num) }}"
|
2018-10-01 23:11:13 +08:00
|
|
|
changed_when: false
|
|
|
|
with_dict: "{{ rgw_create_pools }}"
|
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2019-03-25 22:04:50 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2018-10-01 23:11:13 +08:00
|
|
|
run_once: true
|
|
|
|
|
|
|
|
- name: customize pool size
|
2019-12-30 17:53:20 +08:00
|
|
|
command: "{{ container_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd pool set {{ item.key }} size {{ item.value.size | default(osd_pool_default_size) }}"
|
2018-10-01 23:11:13 +08:00
|
|
|
with_dict: "{{ rgw_create_pools }}"
|
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
|
|
|
changed_when: false
|
|
|
|
run_once: true
|
2019-03-25 22:04:50 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2020-01-20 18:36:27 +08:00
|
|
|
when: item.value.size | default(osd_pool_default_size) != ceph_osd_pool_default_size
|
2019-05-10 21:32:00 +08:00
|
|
|
|
|
|
|
- name: set the rgw_create_pools pools application to rgw
|
2019-05-14 20:51:32 +08:00
|
|
|
command: "{{ container_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd pool application enable {{ item.key }} rgw"
|
2019-05-10 21:32:00 +08:00
|
|
|
changed_when: false
|
|
|
|
with_dict: "{{ rgw_create_pools }}"
|
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
run_once: true
|