]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Using another user than root for cephadm ssh connections fails
authorTeoman ONAY <tonay@redhat.com>
Thu, 17 Mar 2022 14:13:06 +0000 (15:13 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 21 Mar 2022 08:35:28 +0000 (09:35 +0100)
Fixes commit da42f3d139e595d09edfb30334fbc7ce17ffa3fe

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2048734
Signed-off-by: Teoman ONAY <tonay@redhat.com>
(cherry picked from commit f851d3232c6237c46044fb68fdb70ccc0d0deb3c)

infrastructure-playbooks/cephadm-adopt.yml

index 3136e5229ad9bb2863d480788df80bad1011c81b..15396d08e3a3558413d99f4c80eb2588eb9da2a3 100644 (file)
         -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