summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-16 19:46:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-16 19:46:30 -0300
commit1413ba4b0d23d3058959c37261e623d5c05fa682 (patch)
treeca9bd75f70f3cd0e5a962f621528927ee553e386
parentb841d178ff55c28310cd466da6bd058c2e582c5c (diff)
downloadpuppet-nginx-1413ba4b0d23d3058959c37261e623d5c05fa682.tar.gz
puppet-nginx-1413ba4b0d23d3058959c37261e623d5c05fa682.tar.bz2
Certbot: renewal cronjob
-rw-r--r--manifests/ssl.pp10
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'],
+ }
}