Skip to content

Commit

Permalink
ceph-nfs: allow overriding NFS_CORE_PARAM
Browse files Browse the repository at this point in the history
We already have config override variables for existing block (like
ganesha_ceph_export_overrides, ganesha_log_overrides, etc...) or a
global one (ganesha_conf_overrides) but redefining the NFS_CORE_PARAM
block in that variable will erase all previous values (currently only
Bind_Addr).

ganesha_core_param_overrides: |
        Enable_UDP = false;
        NFS_Port = 2050;

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1941775

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
  • Loading branch information
dsavineau authored and guits committed Jul 19, 2021
1 parent 60aa70a commit 9817d29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions group_vars/nfss.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ dummy:
# #Entries_HWMark = 100000;
#}
#
#ganesha_core_param_overrides:
#ganesha_ceph_export_overrides:
#ganesha_rgw_export_overrides:
#ganesha_rgw_section_overrides:
Expand Down
1 change: 1 addition & 0 deletions roles/ceph-nfs/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ rgw_client_name: client.rgw.{{ ansible_facts['hostname'] }}
#Entries_HWMark = 100000;
#}
#
#ganesha_core_param_overrides:
#ganesha_ceph_export_overrides:
#ganesha_rgw_export_overrides:
#ganesha_rgw_section_overrides:
Expand Down
1 change: 1 addition & 0 deletions roles/ceph-nfs/templates/ganesha.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ NFS_Core_Param
{% if ceph_nfs_bind_addr is defined %}
Bind_Addr={{ ceph_nfs_bind_addr }};
{% endif %}
{{ ganesha_core_param_overrides | default(None) }}
}

{% if ceph_nfs_disable_caching | bool or nfs_file_gw | bool %}
Expand Down

0 comments on commit 9817d29

Please sign in to comment.