]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: set cephadm registry login info
authorDaniel Pivonka <dpivonka@redhat.com>
Thu, 9 Sep 2021 21:14:10 +0000 (17:14 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 13 Sep 2021 14:18:53 +0000 (16:18 +0200)
registry login info needs to be stored in cluster for cephadm and future hosts

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2000103
Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
(cherry picked from commit 1c50dc29cf9e9d08d668f82b679bd0a308ed5835)

infrastructure-playbooks/cephadm-adopt.yml

index b0b31a4d91dee5cc8a72c6253e696a902827a8cd..49454931626eac5227705150b74aadfec1e2f77e 100644 (file)
       set_fact:
         cephadm_cmd: "cephadm {{ '--docker' if container_binary == 'docker' else '' }}"
 
+    - name: set container registry info
+      command: "{{ ceph_cmd }} cephadm registry-login {{ ceph_docker_registry }} {{ ceph_docker_registry_username }} {{ ceph_docker_registry_password }}"
+      changed_when: false
+      run_once: true
+      delegate_to: '{{ groups[mon_group_name][0] }}'
+      when: ceph_docker_registry_auth | bool
+
 - name: adopt ceph mon daemons
   hosts: "{{ mon_group_name|default('mons') }}"
   serial: 1