]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Convert interface names to underscores for facts
authorMajor Hayden <major@mhtx.net>
Mon, 11 Dec 2017 15:56:56 +0000 (09:56 -0600)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 6 Feb 2018 04:11:47 +0000 (05:11 +0100)
commit39c900a0fbff9670a5fbb41f5efaf43790f6d6ff
tree7e481c85aa63ae9af80a5293827b645c18e27899
parent28c11c56fe47823b1e047b2928c8d065b2e58b24
Convert interface names to underscores for facts

If a deployer uses an interface name with a dash/hyphen in it, such
as 'br-storage' for the monitor_interface group_var, the ceph.conf.j2
template fails to find the right facts. It looks for
'ansible_br-storage' but only 'ansible_br_storage' exists.

This patch converts the interface name to underscores when the
template does the fact lookup.

(cherry picked from commit 5676fa23b169e0ca3af7d4f9b804bbe90d1cccc6)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-config/templates/ceph.conf.j2
roles/ceph-defaults/templates/restart_rgw_daemon.sh.j2
roles/ceph-mon/templates/ceph-mon.service.j2
roles/ceph-rgw/templates/ceph-radosgw.service.j2