]> gitweb.fluxo.info Git - puppet-nginx.git/commitdiff
Certbot: renewal cronjob
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Jun 2016 22:46:30 +0000 (19:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Jun 2016 22:46:30 +0000 (19:46 -0300)
manifests/ssl.pp

index 8592546459b54cad16173e885f1646b4d0c65b6d..2ec8d89e551eb012df0afcaa322beee8b5bccf73 100644 (file)
@@ -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'],
+  }
 }