summaryrefslogtreecommitdiffstats
path: root/roles/ganesha/templates/ganesha-ha.conf.j2
blob: bdb2e0ce7d0ea2c85ba178a45ff028d318c793f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{% set members = groups['masters'] | union(groups['new_masters'] | default([])) | map('extract', hostvars, 'ands_hostname_storage') | list %}
{% set vips = ands_ipfailover_vips | default([]) %}
{% set n_vips = vips | length %}
{% if n_vips > 0 %}
{%    set nodes = members[0:n_vips] %}
HA_NAME="openshift_nfs"
#HA_VOL_SERVER="{{ hostvars[groups['masters'][0]]['ands_hostname_storage'] }}"
HA_CLUSTER_NODES="{{ nodes | join(',') }}"
{%   for node in nodes %}
VIP_{{ node }}="{{ vips[loop.index - 1] }}"
{%   endfor %}
{% endif %}