]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix ceph.conf if MDSs are not reachable 40/head
authorAlessandro Corbelli <alessandro.corbelli@guest.it>
Wed, 12 Mar 2014 15:13:06 +0000 (16:13 +0100)
committerAlessandro Corbelli <alessandro.corbelli@guest.it>
Wed, 12 Mar 2014 15:13:06 +0000 (16:13 +0100)
roles/common/templates/ceph.conf.j2

index 06ef6e0ff81e4311e45cbcaf1f43618c1aa1cdd6..fe4d6095c502a0cfdffc5a37df8927227ed06028 100644 (file)
@@ -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 %}