Really jinja, 1?

This commit is contained in:
Pierre-Yves Chibon 2014-02-07 23:31:36 +01:00
parent 2fa4233e67
commit db7116ca33

View file

@ -17,7 +17,7 @@ end-volume
volume mirror-0
type cluster/replicate
subvolumes {% for server in servers %}vol-{{loop.index}} {% endfor %}
subvolumes {% for server in servers %}vol-{{loop.index - 1}} {% endfor %}
{% if servers.index(inventory_hostname) %}
option read-subvolume vol-{{ servers.index(inventory_hostname)}}{% endif %}