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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue