Added cron job for freebsd

This commit is contained in:
Tobias Herre 2023-09-27 23:05:52 +02:00
parent 088242592a
commit 35144901fa
2 changed files with 23 additions and 0 deletions

View File

@ -40,6 +40,21 @@ packages:
policy => "present",
package_module => apt_get,
handle => "certbot_installed";
files:
freebsd::
"/etc/cron.d/certbot"
create => "true",
copy_from => local_cp("$(sys.workdir)/inputs/$(def.mfdomain)/templates/certbot-cron.mustache");
# content => '#
# Managed by CFEngine
#
#SHELL=/bin/sh
#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#0 */12 * * * root certbot -q renew --no-random-sleep-on-renew
#';
}
bundle agent certbot_cert(site,webroot)

View File

@ -0,0 +1,8 @@
#
# Managed by CFEngine
#
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 */12 * * * root certbot -q renew --no-random-sleep-on-renew