]> 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>
Fri, 6 Sep 2019 15:00:55 +0000 (11:00 -0400)
commit7e5e21741eb0143e3d981dc1891253ad331d9753
treeef1b55432d841c0078e6ebca48a41e5d8b7ea9cb
parent79fdf125c7c26d057b2e0f6e2f637bf3f5c438dc
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>
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