Using another user than root for cephadm ssh connections fails

Fixes commit da42f3d139

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

Signed-off-by: Teoman ONAY <tonay@redhat.com>
(cherry picked from commit f851d3232c)
(cherry picked from commit 274a780237)
rhcs-5.1 v6.0.25.4
Teoman ONAY 2022-03-17 15:13:06 +01:00 committed by Guillaume Abrioux
parent 2b3a9882d2
commit 7e6d9511e5
1 changed files with 2 additions and 2 deletions

View File

@ -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