Skip to content

Commit e760db7

Browse files
committed
nfs_configurations workaround
1 parent 5aa9eaa commit e760db7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
tasks_from: nfs-clients.yml
194194
when:
195195
- enable_nfs
196-
- nfs_enable.clients | default(item.nfs_enable.clients) | bool
196+
- nfs_enable.server | bool or ('nfs_enable' in item and item.nfs_enable.server | bool)
197197
loop: "{{ nfs_configurations }}"
198198

199199
- name: Manila mounts

environments/common/inventory/group_vars/all/nfs.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@ nfs_configurations:
2424
# NB: this is stackhpc.nfs role defaults but are set here to prevent being
2525
# accidently overriden via default options
2626
nfs_export_options: 'rw,secure,root_squash'
27-
# prevent non-cluster IPs mounting the share:
28-
# NB: this is set as default for all shares above but is repeated here
29-
# in case nfs_export_clients is overriden
30-
nfs_export_clients: "{{ _nfs_node_ips }}"
3127

3228
- comment: Export /exports/cluster from Slurm control node
3329
nfs_enable:
3430
server: "{{ inventory_hostname in groups['control'] }}"
3531
clients: false
3632
nfs_export: "/exports/cluster"
37-
# prevent non-cluster IPs mounting the share:
38-
# NB: this is set as default for all shares above but is repeated here
39-
# in case nfs_export_clients is overriden
40-
nfs_export_clients: "{{ _nfs_node_ips }}"

0 commit comments

Comments
 (0)