mirror of
https://github.com/saltstack-formulas/letsencrypt-sh-formula.git
synced 2024-11-28 03:28:03 +01:00
22 lines
608 B
Plaintext
22 lines
608 B
Plaintext
|
# -*- coding: utf-8 -*-
|
||
|
# vim: ft=sls
|
||
|
|
||
|
{% from "letsencrypt-sh/map.jinja" import letsencrypt_sh with context %}
|
||
|
|
||
|
{% if letsencrypt_sh.cron_enabled %}
|
||
|
letsencrypt-sh-cron:
|
||
|
cron.present:
|
||
|
- name: {{ letsencrypt_sh.cron_command }}
|
||
|
- user: root
|
||
|
- identifier: letsencrypt-sh-cron
|
||
|
- minute: {{ letsencrypt_sh.cron_minute }}
|
||
|
- hour: {{ letsencrypt_sh.cron_hour }}
|
||
|
- dayweek: {{ letsencrypt_sh.cron_dayweek }}
|
||
|
- comment: Renew TLS certificates with letsencrypt.org
|
||
|
{% else %}
|
||
|
disable-letsencrypt-sh-cron:
|
||
|
cron.absent:
|
||
|
- user: root
|
||
|
- identifier: letsencrypt-sh-cron
|
||
|
{% endif %}
|