File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
playbooks/ansible/roles/sit.gpfs Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 124
124
- name : Configure shares
125
125
command : >-
126
126
/usr/lpp/mmfs/bin/mmsmb export add
127
- {{ item.name }}-{{ config.be.name }}-{{ config.be.variant }}
128
- /gpfs/sit_fs/{{ item.name }}
129
- loop : " {{ samba_shares }}"
127
+ {{ item[0] .name }}-{{ config.be.name }}-{{ config.be.variant }}-{{ item[1] }}
128
+ /gpfs/sit_fs/{{ item[0] .name }}
129
+ loop : " {{ samba_shares | product(config.be.methods) | list }}"
Original file line number Diff line number Diff line change 1
- [{{ name }}-{{ config.be.name }}-{{ config.be.variant }}]
2
- comment = Volume '{{ name }}' from {{ config.be.name }}({{ config.be.variant }})
3
- vfs objects = acl_xattr {% - if config .be .variant == 'vfs' %} gpfs{% endif +%}
1
+ {% - for method in config .be .methods +%}
2
+ [{{ volume.name }}-{{ config.be.name }}-{{ config.be.variant }}-{{ method }}]
3
+ comment = Volume '{{ volume.name }}' from {{ config.be.name }}({{ config.be.variant }} {{ method }})
4
+ vfs objects = acl_xattr {% - if method != 'kclient' %} gpfs{% endif +%}
4
5
path = {{ path }}
5
6
read only = no
6
- {% - for option , value in volume .samba .options .items () | default ([]) +%}
7
+ {% - for option , value in volume .samba .options .items () | default ([]) +%}
7
8
{{ option }} = {{ value }}
9
+ {% - endfor +%}
8
10
{% - endfor +%}
You can’t perform that action at this time.
0 commit comments