mirror of https://github.com/ceph/ceph-ansible.git
cephadm-adopt: support rgw multisite adoption
We need to support rgw multisite deployments.
This commit makes the adoption playbook support this kind of deployment.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1967455
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit fc784fc44c
)
pull/6634/head
parent
5a31701229
commit
5cdc9af044
|
@ -587,6 +587,10 @@
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-defaults
|
name: ceph-defaults
|
||||||
|
|
||||||
|
- import_role:
|
||||||
|
name: ceph-facts
|
||||||
|
tasks_from: set_radosgw_address.yml
|
||||||
|
|
||||||
- name: for non multisite setup
|
- name: for non multisite setup
|
||||||
when: not rgw_multisite | bool
|
when: not rgw_multisite | bool
|
||||||
run_once: true
|
run_once: true
|
||||||
|
@ -628,6 +632,16 @@
|
||||||
environment:
|
environment:
|
||||||
CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
|
CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
|
||||||
|
|
||||||
|
- name: update the placement of radosgw multisite hosts
|
||||||
|
command: "{{ cephadm_cmd }} shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch apply rgw {{ item.rgw_realm }}.{{ item.rgw_zone }}.{{ item.radosgw_frontend_port }} --realm={{ item.rgw_realm }} --zone={{ item.rgw_zone }} --port={{ item.radosgw_frontend_port }} --placement={{ item.host }}"
|
||||||
|
changed_when: false
|
||||||
|
with_items: "{{ rgw_instances_all }}"
|
||||||
|
when: rgw_multisite | bool
|
||||||
|
run_once: true
|
||||||
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
|
environment:
|
||||||
|
CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
|
||||||
|
|
||||||
- name: stop and remove legacy ceph rgw daemons
|
- name: stop and remove legacy ceph rgw daemons
|
||||||
hosts: "{{ rgw_group_name|default('rgws') }}"
|
hosts: "{{ rgw_group_name|default('rgws') }}"
|
||||||
serial: 1
|
serial: 1
|
||||||
|
|
Loading…
Reference in New Issue