diff --git a/group_vars/nfss.yml.sample b/group_vars/nfss.yml.sample index ae20dbb0d..4ec3a38a4 100644 --- a/group_vars/nfss.yml.sample +++ b/group_vars/nfss.yml.sample @@ -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 # diff --git a/roles/ceph-nfs/defaults/main.yml b/roles/ceph-nfs/defaults/main.yml index 01a92a28a..6bbcf47e8 100644 --- a/roles/ceph-nfs/defaults/main.yml +++ b/roles/ceph-nfs/defaults/main.yml @@ -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 # diff --git a/roles/ceph-nfs/templates/ganesha.conf.j2 b/roles/ceph-nfs/templates/ganesha.conf.j2 index 2a2750743..7792de5db 100644 --- a/roles/ceph-nfs/templates/ganesha.conf.j2 +++ b/roles/ceph-nfs/templates/ganesha.conf.j2 @@ -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 {