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

27 lines
985 B
Django/Jinja

## These are core parameters that affect Ganesha as a whole.
NFS_CORE_PARAM {
{% if nfs_server_ganesha_path_pseudo %}
## Allow NFSv3 to mount paths with the Pseudo path, the same as NFSv4,
## instead of using the physical paths.
mount_path_pseudo = true;
{% endif %}
## Configure the protocols that Ganesha will listen for. This is a hard
## limit, as this list determines which sockets are opened. This list
## can be restricted per export, but cannot be expanded.
#Protocols = 3,4,9P;
Protocols = {{ nfs_server_ganesha_server_protocols }};
}
{% if nfs_server_ganesha_mdcache %}
## Configure settings for the object handle cache
MDCACHE {
## The point at which object cache entries will start being reused.
Entries_HWMark = {{ nfs_server_ganesha_mdcache_hwmark }};
}
{% endif %}
{% for export_file in nfs_server_ganesha_exports %}
%include "{{ export_file.name }}.conf"
{% endfor %}