From f363f63446d144a68727a3b72e56250763604987 Mon Sep 17 00:00:00 2001 From: Alessandro Corbelli Date: Wed, 12 Mar 2014 16:13:06 +0100 Subject: [PATCH] Fix ceph.conf if MDSs are not reachable --- roles/common/templates/ceph.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) 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 %} -- 2.47.3