]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-nfs - add bind address variable 2054/head
authorJan Provaznik <jprovazn@redhat.com>
Mon, 16 Oct 2017 10:06:59 +0000 (12:06 +0200)
committerJan Provaznik <jprovazn@redhat.com>
Mon, 23 Oct 2017 07:34:51 +0000 (09:34 +0200)
group_vars/nfss.yml.sample
roles/ceph-nfs/defaults/main.yml
roles/ceph-nfs/templates/ganesha.conf.j2

index ae20dbb0d2d6285afca3cc6f9c2871847e4e7a9b..4ec3a38a43de26621ae1e9c401a0694e1579f961 100644 (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 #
index 01a92a28addf76b1c9527e02dd88f4204736cfb9..6bbcf47e8aca0feb1d337fb6c371a79eac95c56d 100644 (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 #
index 2a2750743e77e4cf0033daea16b47f0a28f122da..7792de5dbf35e85262491c74e5ef269638a41d23 100644 (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
 {