diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-16 19:46:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-16 19:46:30 -0300 |
commit | 1413ba4b0d23d3058959c37261e623d5c05fa682 (patch) | |
tree | ca9bd75f70f3cd0e5a962f621528927ee553e386 | |
parent | b841d178ff55c28310cd466da6bd058c2e582c5c (diff) | |
download | puppet-nginx-1413ba4b0d23d3058959c37261e623d5c05fa682.tar.gz puppet-nginx-1413ba4b0d23d3058959c37261e623d5c05fa682.tar.bz2 |
Certbot: renewal cronjob
-rw-r--r-- | manifests/ssl.pp | 10 |
1 files changed, 10 insertions, 0 deletions
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'], + } } |