feat: add authorization for local docker in nfs
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
74dc3a0c89
commit
0b25eb194e
@ -1,14 +1,15 @@
|
|||||||
nfs_cluster_list: "{% for server in groups['all']%} {% if hostvars[server]['ansible_default_ipv4']['address'] is defined %} {{hostvars[server]['ansible_' + hostvars[server]['nfs_iface']|default('')].ipv4.address|default(hostvars[server]['ansible_default_ipv4']['address'],true)}}(rw,no_root_squash,crossmnt,async,insecure_locks,sec=sys) {% endif %} {%endfor%}"
|
nfs_cluster_list: "{% for server in groups['all']%} {% if hostvars[server]['ansible_default_ipv4']['address'] is defined %} {{hostvars[server]['ansible_' + hostvars[server]['nfs_iface']|default('')].ipv4.address|default(hostvars[server]['ansible_default_ipv4']['address'],true)}}{{ nfs_options }} {% endif %} {%endfor%}"
|
||||||
|
nfs_options: "(rw,no_root_squash,crossmnt,async,insecure_locks,sec=sys)"
|
||||||
nfs_consul_service: true
|
nfs_consul_service: true
|
||||||
nfs_bind_target: "/exports"
|
nfs_bind_target: "/exports"
|
||||||
|
|
||||||
|
|
||||||
nfs_exports:
|
nfs_exports:
|
||||||
- "{{ nas_bind_target }} *(fsid=0,insecure,no_subtree_check)"
|
- "{{ nas_bind_target }} *(fsid=0,insecure,no_subtree_check)"
|
||||||
- "{{ nas_bind_target }}/nomad {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/nomad {{nfs_cluster_list}} 172.17.0.0/16{{ nfs_options }}"
|
||||||
- "{{ nas_bind_target }}/download {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/download {{nfs_cluster_list}} 172.17.0.0/16{{ nfs_options }}"
|
||||||
- "{{ nas_bind_target }}/music {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/music {{nfs_cluster_list}} 172.17.0.0/16{{ nfs_options }}"
|
||||||
- "{{ nas_bind_target }}/media {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/media {{nfs_cluster_list}} 172.17.0.0/16{{ nfs_options }}"
|
||||||
- "{{ nas_bind_target }}/photo {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/photo {{nfs_cluster_list}} 172.17.0.0/16{{ nfs_options }}"
|
||||||
- "{{ nas_bind_target }}/homes {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/homes {{nfs_cluster_list}} 172.17.0.0/16{{ nfs_options }}"
|
||||||
- "{{ nas_bind_target }}/ebook {{nfs_cluster_list}}"
|
- "{{ nas_bind_target }}/ebook {{nfs_cluster_list}} 172.17.0.0/16{{ nfs_options }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user