mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-17 10:10:27 +00:00
Retry download state
This commit is contained in:
parent
72b21110c3
commit
980485fa92
1 changed files with 5 additions and 0 deletions
|
@ -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 #}
|
||||
|
|
Loading…
Add table
Reference in a new issue