]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
rbd-mirror: configure pool and peer
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 4 Sep 2019 18:35:20 +0000 (14:35 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 9 Sep 2019 16:13:24 +0000 (12:13 -0400)
commit27217af369bb317b76965c426bf94a6fcab20934
tree83655f78d3b5b83df092201f7a05bf7734129ba3
parentff8e3a5a2e0690b5f81728c70619e1fc696b23c8
rbd-mirror: configure pool and peer

The rbd mirror configuration was only available for non containerized
deployment and was also imcomplete.
We now enable the mirroring on the pool and add the remote peer in both
scenarios.

The default mirroring mode is set to 'pool' but can be configured via
the ceph_rbd_mirror_mode variable.

This commit also fixes an issue on the rbd mirror command if the ceph
cluster name isn't using the default value (ceph) due to a missing
--cluster parameter to the command.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1665877
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 7e5e21741eb0143e3d981dc1891253ad331d9753)
group_vars/rbdmirrors.yml.sample
roles/ceph-rbd-mirror/defaults/main.yml
roles/ceph-rbd-mirror/tasks/configure_mirroring.yml
roles/ceph-rbd-mirror/tasks/main.yml