From 280c773ae7425efcddb9f8d27d1ad88487291025 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 7 Feb 2014 23:25:16 +0100 Subject: [PATCH] Jinja and yaml are fun together --- roles/gluster/client/templates/client.config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/gluster/client/templates/client.config b/roles/gluster/client/templates/client.config index b7cac8df95..15a0aaa817 100644 --- a/roles/gluster/client/templates/client.config +++ b/roles/gluster/client/templates/client.config @@ -17,10 +17,9 @@ end-volume volume mirror-0 type cluster/replicate subvolumes {% for server in servers %}vol-#{{loop.index}} {% endfor %} - {% if servers.index(inventory_hostname) %} - option read-subvolume vol-{{ servers.index(inventory_hostname)}} - {% endif %} + option read-subvolume vol-{{ servers.index(inventory_hostname)}}{% endif %} + end-volume volume writebehind