mirror of https://github.com/ceph/ceph-ansible.git
Using another user than root for cephadm ssh connections fails
Fixes commitrhcs-5.1 v6.0.25.4da42f3d139
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2048734 Signed-off-by: Teoman ONAY <tonay@redhat.com> (cherry picked from commitf851d3232c
) (cherry picked from commit274a780237
)
parent
2b3a9882d2
commit
7e6d9511e5
|
@ -288,9 +288,9 @@
|
|||
-v /var/lib/ceph:/var/lib/ceph:ro
|
||||
-v /var/run/ceph:/var/run/ceph:z
|
||||
-v ' + item.1 + ':/etc/ceph/cephadm.' + item.0 + ':ro --entrypoint=ceph '+ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else 'ceph' }}
|
||||
--cluster {{ cluster }} config-key set mgr/cephadm/ssh_identity_{{ item.0 }} -i /etc/ceph/cephadm.{{ item.0 }}
|
||||
--cluster {{ cluster }} cephadm set-{{ item.0 }}-key -i /etc/ceph/cephadm.{{ item.0 }}
|
||||
with_together:
|
||||
- [ 'pub', 'key' ]
|
||||
- [ 'pub', 'priv' ]
|
||||
- [ '{{ cephadm_ssh_pub_key_path }}', '{{ cephadm_ssh_priv_key_path }}' ]
|
||||
|
||||
- name: get the cephadm ssh pub key
|
||||
|
|
Loading…
Reference in New Issue