Merge pull request #32 from noelmcloughlin/retries

Retry packages.archives download state
This commit is contained in:
Niels Abspoel 2018-12-01 20:38:21 +01:00 committed by GitHub
commit 0ea7e20357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,11 @@ packages-archive-wanted-download-{{ package }}:
cmd.run:
- name: curl -s -L -o {{ packages.tmpdir }}/{{ archivename }} {{ archive.dl.source }}
- unless: test -f {{ packages.tmpdir }}/{{ archivename }}/
- retry:
attempts: 5
until: True
interval: 60
splay: 10
{%- if 'hashsum' in archive.dl and archive.dl.hashsum %}
{# see https://github.com/saltstack/salt/pull/41914 #}