]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
rgw multisite: enable more than 1 realm per cluster
authorAli Maredia <amaredia@redhat.com>
Fri, 4 Oct 2019 19:31:25 +0000 (19:31 +0000)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 4 Mar 2020 19:39:23 +0000 (14:39 -0500)
commit2c440d44276a536a5ae549f40937b250646aef08
treeaf6659c13759f8a0196c3e7dc0169fdb6eb78850
parent3b0ee8359475aa49b7b78b134d167e1e030b74b4
rgw multisite: enable more than 1 realm per cluster

Make it so that more than one realm, zonegroup,
or zone can be created during a run of the rgw
multisite ansible playbooks.

The rgw hosts now need to be grouped into zones
and realms in the inventory.

.yml files need to be created in group_vars
for the realms and zones. Sample yaml files
are available.

Also remove multsite destroy playbook
and add --cluster before radosgw-admin commands

remove manually added rgw_zone_endpoints var
and have ceph-ansible automatically add the
correct endpoints of all the rgws in a rgw_zone
from the information provided in that rgws hostvars.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit 71f55bd54d923f610e451e11828378c14f1ec1cc)
23 files changed:
README-MULTISITE-MULTIREALM.md [new file with mode: 0644]
README-MULTISITE.md
group_vars/all.yml.sample
group_vars/realm.yml.sample [new file with mode: 0644]
group_vars/rhcs.yml.sample
group_vars/zone.yml.sample [new file with mode: 0644]
roles/ceph-config/templates/ceph.conf.j2
roles/ceph-defaults/defaults/main.yml
roles/ceph-facts/tasks/set_radosgw_address.yml
roles/ceph-rgw/handlers/main.yml
roles/ceph-rgw/tasks/main.yml
roles/ceph-rgw/tasks/multisite/checks.yml
roles/ceph-rgw/tasks/multisite/create_realm_zonegroup_zone_lists.yml [new file with mode: 0644]
roles/ceph-rgw/tasks/multisite/create_zone_user.yml [new file with mode: 0644]
roles/ceph-rgw/tasks/multisite/destroy.yml [deleted file]
roles/ceph-rgw/tasks/multisite/main.yml
roles/ceph-rgw/tasks/multisite/master.yml
roles/ceph-rgw/tasks/multisite/secondary.yml
roles/ceph-validate/tasks/check_rgw_multisite.yml
tests/functional/rgw-multisite/container/group_vars/rgws
tests/functional/rgw-multisite/container/secondary/hosts
tests/functional/rgw-multisite/group_vars/rgws
tests/functional/rgw-multisite/secondary/hosts