Merge pull request #2071 from jtaleric/master

Docker image pull retry
pull/2122/head
Sébastien Han 2017-10-27 09:49:03 +02:00 committed by GitHub
commit d6a0d2f9be
4 changed files with 20 additions and 1 deletions

View File

@ -500,3 +500,8 @@ dummy:
#rolling_update: false
#####################
# Docker pull retry #
#####################
#docker_pull_retry: 3
#docker_pull_timeout: "300s"

View File

@ -500,3 +500,8 @@ ceph_repository: rhcs
#rolling_update: false
#####################
# Docker pull retry #
#####################
#docker_pull_retry: 3
#docker_pull_timeout: "300s"

View File

@ -491,3 +491,8 @@ kv_port: 2379
# do not ever change this here
rolling_update: false
#####################
# Docker pull retry #
#####################
docker_pull_retry: 3
docker_pull_timeout: "300s"

View File

@ -1,8 +1,12 @@
---
# Normal case - pull image from registry
- 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
register: docker_image
until: docker_image.rc == 0
retries: "{{ docker_pull_retry }}"
delay: 10
when:
- (ceph_docker_dev_image is undefined or not ceph_docker_dev_image)