Jinja and yaml are fun together
This commit is contained in:
parent
06990b2234
commit
280c773ae7
1 changed files with 2 additions and 3 deletions
|
@ -17,10 +17,9 @@ end-volume
|
||||||
volume mirror-0
|
volume mirror-0
|
||||||
type cluster/replicate
|
type cluster/replicate
|
||||||
subvolumes {% for server in servers %}vol-#{{loop.index}} {% endfor %}
|
subvolumes {% for server in servers %}vol-#{{loop.index}} {% endfor %}
|
||||||
|
|
||||||
{% if servers.index(inventory_hostname) %}
|
{% if servers.index(inventory_hostname) %}
|
||||||
option read-subvolume vol-{{ servers.index(inventory_hostname)}}
|
option read-subvolume vol-{{ servers.index(inventory_hostname)}}{% endif %}
|
||||||
{% endif %}
|
|
||||||
end-volume
|
end-volume
|
||||||
|
|
||||||
volume writebehind
|
volume writebehind
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue