summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'],
+ }
}