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>pull/6892/head
parent
c42ad1f487
commit
1c50dc29cf
|
@ -355,6 +355,13 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
cephadm_cmd: "cephadm {{ '--docker' if container_binary == 'docker' else '' }}"
|
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
|
- name: adopt ceph mon daemons
|
||||||
hosts: "{{ mon_group_name|default('mons') }}"
|
hosts: "{{ mon_group_name|default('mons') }}"
|
||||||
serial: 1
|
serial: 1
|
||||||
|
|
Loading…
Reference in New Issue