2016-08-08 11:16:15 +08:00
|
|
|
---
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: fetch the realm
|
2016-08-17 02:57:01 +08:00
|
|
|
command: radosgw-admin realm pull --url=http://{{ rgw_pullhost }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}
|
2016-08-11 05:05:27 +08:00
|
|
|
run_once: true
|
2016-08-11 06:03:09 +08:00
|
|
|
when: ("No such file or directory" in realmcheck.stderr)
|
2016-08-11 05:05:27 +08:00
|
|
|
notify:
|
|
|
|
- update period
|
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: fetch the period
|
2016-08-17 02:57:01 +08:00
|
|
|
command: radosgw-admin period pull --url=http://{{ rgw_pullhost }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }}
|
2016-08-11 05:05:27 +08:00
|
|
|
run_once: true
|
2016-08-11 06:03:09 +08:00
|
|
|
when: ("No such file or directory" in realmcheck.stderr)
|
2016-08-08 11:16:15 +08:00
|
|
|
notify:
|
|
|
|
- update period
|
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: set default realm
|
2016-08-11 06:03:09 +08:00
|
|
|
command: radosgw-admin realm default --rgw-realm={{ rgw_realm }}
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
|
|
|
notify:
|
2016-08-11 06:03:09 +08:00
|
|
|
- update period # Might not need to update period here
|
2016-08-08 11:16:15 +08:00
|
|
|
|
2016-08-17 05:57:49 +08:00
|
|
|
- name: set default zonegroup
|
2016-08-11 06:03:09 +08:00
|
|
|
command: radosgw-admin zonegroup default --rgw-zonegroup={{ rgw_zonegroup }}
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
|
|
|
notify:
|
2016-08-11 06:03:09 +08:00
|
|
|
- update period # Might not need to update period here
|
2016-08-08 11:16:15 +08:00
|
|
|
|
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_hostname }}:{{ radosgw_civetweb_port }} --access-key={{ system_access_key }} --secret={{ system_secret_key }} --default
|
2016-08-08 11:16:15 +08:00
|
|
|
run_once: true
|
2016-08-11 06:03:09 +08:00
|
|
|
when: ("No such file or directory" in zonecheck.stderr)
|
2016-08-08 11:16:15 +08:00
|
|
|
notify:
|
|
|
|
- update period
|