From: Alessandro Corbelli Date: Wed, 12 Mar 2014 15:13:06 +0000 (+0100) Subject: Fix ceph.conf if MDSs are not reachable X-Git-Tag: v1.0.0~383^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40%2Fhead;p=ceph-ansible.git Fix ceph.conf if MDSs are not reachable --- diff --git a/roles/common/templates/ceph.conf.j2 b/roles/common/templates/ceph.conf.j2 index 06ef6e0ff..fe4d6095c 100644 --- a/roles/common/templates/ceph.conf.j2 +++ b/roles/common/templates/ceph.conf.j2 @@ -56,7 +56,9 @@ {% if mds %} [mds] {% for host in groups['mdss'] %} + {% if hostvars[host]['ansible_hostname'] is defined %} [mds.{{ hostvars[host]['ansible_hostname'] }}] host = {{ hostvars[host]['ansible_hostname'] }} + {% endif %} {% endfor %} {% endif %}