]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix ceph.conf generation
authorZack Cerza <zack@redhat.com>
Thu, 24 Jan 2019 19:49:09 +0000 (12:49 -0700)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 25 Jan 2019 08:19:24 +0000 (09:19 +0100)
877979c78 in #3486 broke ceph.conf generation entirely. Remove the stray
curly brace.

Signed-off-by: Zack Cerza <zack@redhat.com>
roles/ceph-config/templates/ceph.conf.j2

index d7fb60d7429ae04d4dbb279d6506cfd1408cc667..64df04634393b35467b32bee564ceba5aa23b3aa 100644 (file)
@@ -19,9 +19,9 @@ osd crush chooseleaf type = 0
 {% set nb_mon = groups.get(mon_group_name, []) | length | int %}
 {% set nb_client = groups.get(client_group_name, []) | length | int %}
 {% set nb_osd = groups.get(osd_group_name, []) | length | int %}
-{% if inventory_hostname in groups.get(client_group_name, []) and not inventory_hostname == groups.get(client_group_name, []) | first %}}
-{% set ceph_release = hostvars[groups[client_group_name][0]]['ceph_release'] %}}
-{% endif %}}
+{% if inventory_hostname in groups.get(client_group_name, []) and not inventory_hostname == groups.get(client_group_name, []) | first %}
+{% set ceph_release = hostvars[groups[client_group_name][0]]['ceph_release'] %}
+{% endif %}
 
 {% if nb_mon > 0 and inventory_hostname in groups.get(mon_group_name, []) %}
 mon initial members = {% for host in groups[mon_group_name] %}