]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Common: Add ipv6 support
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 7 Jun 2017 11:26:04 +0000 (13:26 +0200)
committerGuits <gabrioux@redhat.com>
Tue, 4 Jul 2017 08:57:26 +0000 (10:57 +0200)
commit88df105d0b13f2a245666409cafd752d0176ecc3
treede22dac3e272403958d9eda6650191ba0671a40e
parent15b81bd255d0ab82e18ad15484008ba8b9dbaadb
Common: Add ipv6 support

e8187f6 does not fix the ipv6 as expected since `ansible_default_*` are
filled with the IP address carried by the network interface used by the
default gateway route. By the way, it assumes that the MON_IP address will
be this IP address which is not always the case.

We need to keep using the previous fact but add some intelligence in the
template to determine how to retrieve the ipv4|ipv6 address since the path
to the fact in `hostvars` is not the same according to ipv4 vs ipv6 case.

Fix: 1569

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-common/tasks/checks/check_mandatory_vars.yml
roles/ceph-common/templates/ceph.conf.j2
roles/ceph-mon/templates/ceph-mon.service.j2