diff --git a/certbot.cf b/certbot.cf index 64c0b18..364cc77 100644 --- a/certbot.cf +++ b/certbot.cf @@ -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) diff --git a/templates/certbot-cron.mustache b/templates/certbot-cron.mustache new file mode 100644 index 0000000..612b431 --- /dev/null +++ b/templates/certbot-cron.mustache @@ -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 +