ansible-role-basic-system-s.../templates/ganesha-export.conf.j2

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-03-21 14:28:24 +01:00
EXPORT
{
# Export Id (mandatory, each EXPORT must have a unique Export_Id)
Export_Id = {{ item.id }};
# Exported path (mandatory)
Path = {{ item.path }};
# Pseudo Path (required for NFS v4)
Pseudo = {{ item.pseudo }};
# Required for access (default is None)
# Could use CLIENT blocks instead
Access_Type = {{ item.access_type | default('RW') }};
## Restrict the protocols that may use this export. This cannot allow
## access that is denied in NFS_CORE_PARAM.
Protocols = {{ nfs_server_ganesha_server_protocols | default('4') }};
## Whether to squash various users.
Squash = {{ item.squash | default('root_squash') }};
NFS_Commit = {{ item.nfs_commit | default('false') }};
Delegations= {{ item.delegations | default('None') }};
Disable_ACL = {{ item.disable_acl | default('false') }};
## Allowed security types for this export
Sectype = {{ item.sectype | default('sys') }};
# Exporting FSAL
FSAL {
Name = {{ item.fsal }};
}
CLIENT
{
Clients = {% for nfs_client in item.clients %}{{ nfs_client }}{% if not loop.last %},{% endif %}{% endfor %};
Access_Type = {{ item.access_type }};
}
}