blob: 85132cbf8407dff380807ce51b29d7dd927f7881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{% set i = 0 %}
{% for domain in glusterfs_domains %}
{% for name, vol in domain.volumes.iteritems() %}
{% if vol.nfs_clients is defined %}
{% set nfs = vol.nfs_clients %}
{% set i = i + 1 %}
EXPORT {
Export_Id = {{ i }};
Path = "/{{ name }}";
FSAL {
name = GLUSTER;
hostname = "localhost";
volume = "{{ name }}";
}
Access_type = RW;
Disable_ACL = true;
Squash = "No_root_squash";
Pseudo = "/{{ name }}";
Protocols = "3", "4" ;
Transports = "UDP","TCP";
SecType = "sys";
Manage_gids = true;
{% if nfs.rw is defined %}
{% for net in nfs.rw %}
CLIENT {
clients = {{ net }};
Access_type = RW;
}
{% endfor %}
{% endif %}
{% if nfs.ro is defined %}
{% for net in nfs.ro %}
CLIENT {
clients = {{ net }};
Access_type = RO;
}
{% endfor %}
{% endif %}
}
{% endif %}
{% endfor %}
{% endfor %}
|