Merge pull request #2054 from jprovaznik/bindaddr

ceph-nfs - add bind address variable
pull/2091/head
Sébastien Han 2017-10-23 12:20:46 +02:00 committed by GitHub
commit 2bc58684e5
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
{