ceph-nfs - add bind address variable

pull/2054/head
Jan Provaznik 2017-10-16 12:06:59 +02:00
parent 54de2efc5d
commit 291e6b604d
3 changed files with 16 additions and 0 deletions

View File

@ -44,6 +44,10 @@ dummy:
######################
#ceph_nfs_log_file: "/var/log/ganesha/ganesha.log"
#ceph_nfs_dynamic_exports: false
# Address ganesha service should listen on, by default ganesha listens on all
# addresses. (Note: ganesha ignores this parameter in current version due to
# this bug: https://github.com/nfs-ganesha/nfs-ganesha/issues/217)
# ceph_nfs_bind_addr: 0.0.0.0
####################
# FSAL Ceph Config #

View File

@ -36,6 +36,10 @@ nfs_obj_gw: true
######################
ceph_nfs_log_file: "/var/log/ganesha/ganesha.log"
ceph_nfs_dynamic_exports: false
# Address ganesha service should listen on, by default ganesha listens on all
# addresses. (Note: ganesha ignores this parameter in current version due to
# this bug: https://github.com/nfs-ganesha/nfs-ganesha/issues/217)
# ceph_nfs_bind_addr: 0.0.0.0
####################
# FSAL Ceph Config #

View File

@ -5,6 +5,14 @@
%include /etc/ganesha/export.d/INDEX.conf
{% endif %}
NFS_Core_Param
{
{% if ceph_nfs_bind_addr is defined %}
Bind_Addr={{ ceph_nfs_bind_addr }};
{% endif %}
}
{% if nfs_file_gw %}
EXPORT
{