mirror of https://github.com/ceph/ceph-ansible.git
commit
d6a0d2f9be
|
@ -500,3 +500,8 @@ dummy:
|
||||||
#rolling_update: false
|
#rolling_update: false
|
||||||
|
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# Docker pull retry #
|
||||||
|
#####################
|
||||||
|
#docker_pull_retry: 3
|
||||||
|
#docker_pull_timeout: "300s"
|
||||||
|
|
|
@ -500,3 +500,8 @@ ceph_repository: rhcs
|
||||||
#rolling_update: false
|
#rolling_update: false
|
||||||
|
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# Docker pull retry #
|
||||||
|
#####################
|
||||||
|
#docker_pull_retry: 3
|
||||||
|
#docker_pull_timeout: "300s"
|
||||||
|
|
|
@ -491,3 +491,8 @@ kv_port: 2379
|
||||||
# do not ever change this here
|
# do not ever change this here
|
||||||
rolling_update: false
|
rolling_update: false
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# Docker pull retry #
|
||||||
|
#####################
|
||||||
|
docker_pull_retry: 3
|
||||||
|
docker_pull_timeout: "300s"
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
---
|
---
|
||||||
# Normal case - pull image from registry
|
# Normal case - pull image from registry
|
||||||
- name: "pull {{ ceph_docker_image }} image"
|
- name: "pull {{ ceph_docker_image }} image"
|
||||||
command: "docker pull {{ ceph_docker_registry}}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}"
|
command: "timeout {{ docker_pull_timeout }} docker pull {{ ceph_docker_registry}}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
register: docker_image
|
||||||
|
until: docker_image.rc == 0
|
||||||
|
retries: "{{ docker_pull_retry }}"
|
||||||
|
delay: 10
|
||||||
when:
|
when:
|
||||||
- (ceph_docker_dev_image is undefined or not ceph_docker_dev_image)
|
- (ceph_docker_dev_image is undefined or not ceph_docker_dev_image)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue