Skip to content
Snippets Groups Projects
Commit 118dfd07 authored by Chris Hines's avatar Chris Hines
Browse files

Merge pull request #79 from CVL-GitHub/slurmbranch3

Fixed syncExport
parents aaaea7ff 5fed48d3
No related branches found
No related tags found
No related merge requests found
{% for export in exportList %}
{% set iplist = [] %}
{% for node in groups[export.group] %}
{% for group in export.group %}
{% for node in groups[group] %}
{% if hostvars[node]['ansible_'+export.interface] is defined %}
{% if iplist.append(hostvars[node]['ansible_'+export.interface]['ipv4']['address']) %}
{% endif %}
{% endif %}
{% endfor %}
{{ export.src }} {% for ip in iplist|unique %}{{ ip }}({{ export.srvopts }})
{% endfor %}
{{ export.src }} {% for ip in iplist|unique %}{{ ip }}({{ export.srvopts }}) {% endfor %}
{% endfor %}
......@@ -5,4 +5,4 @@
# which is irrelevant).
# group is a group of nodes (ansible group) authorised to mount the export
exportList:
- { src: '/cinderVolume/home', srvopts: 'fsid=1,rw,no_root_squash,sync', 'opts': 'defaults,nofail', group: 'DesktopNodes', interface: 'eth0' }
- { src: '/cinderVolume/home', srvopts: 'fsid=1,rw,no_root_squash,sync', 'opts': 'defaults,nofail', group: ['DesktopNodes', 'LoginNodes'], interface: 'eth0' }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment