]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Fix for error when the nodes don't have the same interface name.
authordexter <dgenterone@acale.ph>
Wed, 26 Aug 2015 08:11:21 +0000 (16:11 +0800)
committerdexter <dgenterone@acale.ph>
Wed, 26 Aug 2015 08:11:21 +0000 (16:11 +0800)
commit873c5cffb25f17115fb355eb35ee2d1d2d129331
tree5becd251a876ba648eeeafe3f530bfd180e98d49
parent453bf501261e3fba9e9c3c09baf6ab7f4c259216
Fix for error when the nodes don't have the same interface name.

This is a rare case but it happens. Since we're just calling
`monitor_interface` and not `hostvars[host]['monitor_interface'],
an error may occur when the current host's interface does not
exist on the other hosts. (eg. eth0 exists for node0, but it does
not exist on node1 and node2)

Fix for this is to use hostvars[host]['monitor_interface']
roles/ceph-common/templates/ceph.conf.j2