From: Silvio Rhatto Date: Thu, 16 Jun 2016 22:46:30 +0000 (-0300) Subject: Certbot: renewal cronjob X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1413ba4b0d23d3058959c37261e623d5c05fa682;p=puppet-nginx.git Certbot: renewal cronjob --- diff --git a/manifests/ssl.pp b/manifests/ssl.pp index 8592546..2ec8d89 100644 --- a/manifests/ssl.pp +++ b/manifests/ssl.pp @@ -30,4 +30,14 @@ class nginx::ssl( ensure => present, require => File['/var/www/certbot'], } + + cron { 'certbot-renew': + command => 'certbot renew --standalone --pre-hook "service nginx stop" --post-hook "service nginx start"', + user => 'root', + weekday => 1, + hour => "05", + minute => "30", + ensure => present, + require => Package['certbot'], + } }