diff --git a/roles/ceph-nfs/tasks/start_nfs.yml b/roles/ceph-nfs/tasks/start_nfs.yml index cabbc278a..5b74c2d3a 100644 --- a/roles/ceph-nfs/tasks/start_nfs.yml +++ b/roles/ceph-nfs/tasks/start_nfs.yml @@ -38,6 +38,10 @@ group: root mode: "0755" +- name: debug + debug: + msg: "{{ nfs_obj_gw | default('__debug__') }}" + - name: generate ganesha configuration file template: src: "ganesha.conf.j2" diff --git a/roles/ceph-nfs/templates/ganesha.conf.j2 b/roles/ceph-nfs/templates/ganesha.conf.j2 index 8c45255c1..f4ec088c3 100644 --- a/roles/ceph-nfs/templates/ganesha.conf.j2 +++ b/roles/ceph-nfs/templates/ganesha.conf.j2 @@ -94,8 +94,8 @@ EXPORT FSAL { Name = RGW; User_Id = "{{ ceph_nfs_rgw_user }}"; - Access_Key_Id ="{{ ceph_nfs_rgw_access_key }}"; - Secret_Access_Key = "{{ ceph_nfs_rgw_secret_key }}"; + Access_Key_Id ="{{ ceph_nfs_rgw_access_key | default('access_key') }}"; + Secret_Access_Key = "{{ ceph_nfs_rgw_secret_key | default('secret_key') }}"; } {{ ganesha_rgw_export_overrides | default(None) }}