From 1413ba4b0d23d3058959c37261e623d5c05fa682 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 16 Jun 2016 19:46:30 -0300 Subject: Certbot: renewal cronjob --- manifests/ssl.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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'], + } } -- cgit v1.2.3