Skip to content

Commit fa3a07a

Browse files
committed
support oh dear cronjob monitoring
1 parent 59e6f61 commit fa3a07a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

roles/haproxy/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ haproxy_acmedns:
4848

4949
# on which weekday (cron, 0==sunday) to run the renewal script
5050
haproxy_acme_cronjob_dow: 1
51+
52+
# optional monitoring url for acme cron
53+
haproxy_acme_cronjob_monitor_url:

roles/haproxy/tasks/acme.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@
6969
content: |
7070
MAILTO=surfconext-beheer@surf.nl
7171
30 07 * * {{ haproxy_acme_cronjob_dow }} acme /home/acme/.acme.sh/acme.sh --cron --home /home/acme/.acme.sh > /dev/null
72+
{%- if haproxy_acme_cronjob_monitor_url|bool and haproxy_acme_cronjob_monitor_url|length > 0 -%}
73+
{# #} && curl -fsS --retry 3 -o /dev/null {{ haproxy_acme_cronjob_monitor_url }}
74+
{%- endif %}

0 commit comments

Comments
 (0)