Skip to content

Commit 5f7018b

Browse files
committed
cephadm: Log in to Docker registry when a username is provided
Without this, the cluster may fail to deploy because it can't pull images.
1 parent 597fbb6 commit 5f7018b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

roles/cephadm/tasks/prereqs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,11 @@
6363
name: logrotate
6464
state: present
6565
become: True
66+
67+
- name: Log into Docker registry
68+
docker_login:
69+
registry: "{{ cephadm_registry_url }}"
70+
username: "{{ cephadm_registry_username }}"
71+
password: "{{ cephadm_registry_password }}"
72+
when: cephadm_registry_username | length > 0
73+
become: true

0 commit comments

Comments
 (0)