]> gitweb.fluxo.info Git - puppet-certbot.git/commitdiff
Cert renew twice a day
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Jun 2016 14:30:13 +0000 (11:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Jun 2016 14:30:13 +0000 (11:30 -0300)
manifests/init.pp

index 5941ba3587a0e52a2cfab2cf476b616f7066af1f..4a31bd97d18fb00c142cc87b4e365d216b7c2ad6 100644 (file)
@@ -34,12 +34,12 @@ class certbot(
     require => File[$basedir],
   }
 
+  # Chosing an arbitrary minite within the hour in the hope that won't overload Let's Encrypt servers
   cron { 'certbot-renew':
-    command => "/usr/bin/${tool} renew --standalone ${real_pre_hook} ${real_post_hook}",
+    command => "/usr/bin/${tool} renew --standalone --quiet ${real_pre_hook} ${real_post_hook}",
     user    => 'root',
-    weekday => 1,
-    hour    => "05",
-    minute  => "30",
+    hour    => [ 5, 23 ],
+    minute  => "28",
     ensure  => present,
     require => Package[$tool],
   }