2016-08-08 11:16:15 +08:00
|
|
|
---
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: fetch the realm
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin realm pull --url={{ rgw_pull_proto }}://{{ rgw_pullhost }}:{{ rgw_pull_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}"
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-11 05:05:27 +08:00
|
|
|
run_once: true
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
2017-09-19 06:33:23 +08:00
|
|
|
- "'No such file or directory' in realmcheck.stderr"
|
2016-08-11 05:05:27 +08:00
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: fetch the period
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin period pull --url={{ rgw_pull_proto }}://{{ rgw_pullhost }}:{{ rgw_pull_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}"
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-11 05:05:27 +08:00
|
|
|
run_once: true
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
2017-09-19 06:33:23 +08:00
|
|
|
- "'No such file or directory' in realmcheck.stderr"
|
2016-08-08 11:16:15 +08:00
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: set default realm
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin realm default --rgw-realm={{ rgw_realm }}"
|
2018-10-30 22:51:32 +08:00
|
|
|
changed_when: false
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: set default zonegroup
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin zonegroup default --rgw-zonegroup={{ rgw_zonegroup }}"
|
2018-10-30 22:51:32 +08:00
|
|
|
changed_when: false
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: create the zone
|
2018-10-29 21:05:59 +08:00
|
|
|
command: "{{ docker_exec_cmd }} radosgw-admin zone create --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }} --endpoints=http://{{ rgw_multisite_endpoint_addr }}:{{ radosgw_frontend_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }} --default"
|
2017-09-19 06:33:23 +08:00
|
|
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
2017-09-19 06:33:23 +08:00
|
|
|
- "'No such file or directory' in zonecheck.stderr"
|
2016-08-08 11:16:15 +08:00
|
|
|
notify:
|
|
|
|
- update period
|