mirror of https://github.com/ceph/ceph-ansible.git
nfs: do not copy rgw keyring when `nfs_obj_gw` is true
This keyring shouldn't be copied when `nfs_obj_gw` is `True` if the cluster doesn't contain a rgw node, which can be the case given we are using `nfs_obj_gw` instead of `nfs_file_gw` (cephfs vs. object), the deployment will fail trying to copy a key that doesn't exist. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/5613/head
parent
83d1b33a9b
commit
dd4b5b0328
|
@ -51,7 +51,7 @@
|
||||||
command: "ceph --cluster {{ cluster }} auth get {{ item.name }}"
|
command: "ceph --cluster {{ cluster }} auth get {{ item.name }}"
|
||||||
register: _rgw_keys
|
register: _rgw_keys
|
||||||
with_items:
|
with_items:
|
||||||
- { name: "client.bootstrap-rgw", path: "/var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring", copy_key: true }
|
- { name: "client.bootstrap-rgw", path: "/var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring", copy_key: "{{ nfs_obj_gw }}" }
|
||||||
- { name: "client.admin", path: "/etc/ceph/{{ cluster }}.client.admin.keyring", copy_key: "{{ copy_admin_key }}" }
|
- { name: "client.admin", path: "/etc/ceph/{{ cluster }}.client.admin.keyring", copy_key: "{{ copy_admin_key }}" }
|
||||||
delegate_to: "{{ groups.get(mon_group_name)[0] }}"
|
delegate_to: "{{ groups.get(mon_group_name)[0] }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
Loading…
Reference in New Issue