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>
(cherry picked from commit dd4b5b0328
)
pull/5657/head
parent
3c1e81ce48
commit
fa0484d481
|
@ -50,7 +50,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