0
0
mirror of https://github.com/saltstack-formulas/letsencrypt-sh-formula.git synced 2025-02-17 16:14:23 +01:00
letsencrypt-sh-formula/letsencrypt-sh/cron.sls
Raphaël Hertzog dcfdc638b9 Initial commit
2016-06-21 12:33:55 +02:00

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 %}