Skip to content

Commit 1a0170c

Browse files
technowhizzcityofships
authored andcommitted
Pull ceph images with tag after docker login
In some environments issues are observed with images having missing tags and this missing tag causing cephadm shell to resort to using the default image. By pulling the ceph image to a host with the correct tag cephadm shell should be able be able to detect the image and use it.
1 parent f8cfa15 commit 1a0170c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

roles/cephadm/tasks/prereqs.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,22 @@
3232
- cephadm_registry_username | length > 0
3333
- cephadm_container_engine == 'docker'
3434
become: true
35+
36+
- name: Pull ceph image with Podman
37+
containers.podman.podman_image:
38+
name: "{{ cephadm_image }}"
39+
state: present
40+
when:
41+
- cephadm_image | length > 0
42+
- cephadm_container_engine == 'podman'
43+
become: true
44+
45+
- name: Pull ceph image with Docker
46+
docker_image:
47+
source: pull
48+
name: "{{ cephadm_image }}"
49+
state: present
50+
when:
51+
- cephadm_image | length > 0
52+
- cephadm_container_engine == 'docker'
53+
become: true

0 commit comments

Comments
 (0)