From 5679bbfdd6c8eddfd26eeb1004795139fbcd8ee2 Mon Sep 17 00:00:00 2001 From: Gino Naumann Date: Mon, 14 Oct 2024 22:37:15 +0200 Subject: [PATCH] feat: add retry option to acme_sh.cert --- acme_sh/cert.sls | 3 +++ test/salt/pillar/acme_sh.sls | 2 ++ 2 files changed, 5 insertions(+) diff --git a/acme_sh/cert.sls b/acme_sh/cert.sls index 5807244..6ab6233 100644 --- a/acme_sh/cert.sls +++ b/acme_sh/cert.sls @@ -38,6 +38,9 @@ acme_sh_cert_{{ user }}_{{ domain }}: {%- if cert_config.get('insecure') %} - insecure: {{ cert_config['insecure'] }} {%- endif %} + {%- if cert_config.get('retry') %} + - retry: {{ cert_config['retry'] }} + {%- endif %} {%- endfor %} {%- endif %} {%- endfor %} diff --git a/test/salt/pillar/acme_sh.sls b/test/salt/pillar/acme_sh.sls index 6f27f70..381c9c4 100644 --- a/test/salt/pillar/acme_sh.sls +++ b/test/salt/pillar/acme_sh.sls @@ -13,6 +13,8 @@ acme_sh: keysize: '4096' server: letsencrypt_test cert_path: /home/vagrant/crt + retry: + attempts: 3 standalone.gn98.de: acme_mode: standalone server: https://localhost:14000/dir