mirror of https://github.com/ceph/ceph-ansible.git
cephadm-adopt: set cephadm registry login info
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 1c50dc29cf
)
pull/6896/head
parent
432ab37c6b
commit
969e41fa2e
|
@ -349,6 +349,13 @@
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue