2016-08-08 11:16:15 +08:00
|
|
|
---
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: create the realm
|
2016-08-08 11:16:15 +08:00
|
|
|
command: radosgw-admin realm create --rgw-realm={{ rgw_realm }} --default
|
|
|
|
run_once: true
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- 'No such file or directory' in realmcheck.stderr
|
|
|
|
- rgw_zonemaster
|
2016-08-08 11:16:15 +08:00
|
|
|
notify:
|
|
|
|
- update period
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: create the zonegroup
|
2016-08-17 02:57:01 +08:00
|
|
|
command: radosgw-admin zonegroup create --rgw-zonegroup={{ rgw_zonegroup }} --endpoints=http://{{ ansible_fqdn }}:{{ radosgw_civetweb_port }} --master --default
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- 'No such file or directory' in zonegroupcheck.stderr
|
|
|
|
- rgw_zonemaster
|
2016-08-08 11:16:15 +08:00
|
|
|
notify:
|
|
|
|
- update period
|
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: create the zone
|
2016-08-17 02:57:01 +08:00
|
|
|
command: radosgw-admin zone create --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }} --endpoints=http://{{ ansible_fqdn }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }} --default --master
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- 'No such file or directory' in zonecheck.stderr
|
|
|
|
- rgw_zonemaster
|
2016-08-08 11:16:15 +08:00
|
|
|
notify:
|
|
|
|
- update period
|
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: create the zone user
|
2016-08-08 11:16:15 +08:00
|
|
|
command: radosgw-admin user create --uid=zone.user --display-name="Zone User" --access-key={{ system_access_key }} --secret={{ system_secret_key }} --system
|
|
|
|
run_once: true
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- 'could not fetch user info: no user info saved' in usercheck.stderr
|
2016-08-08 11:16:15 +08:00
|
|
|
notify:
|
|
|
|
- update period
|