From 66f92221aa0cd683362af956e693aed12d30e4bd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Jun 2016 11:30:13 -0300 Subject: Cert renew twice a day --- manifests/init.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 5941ba3..4a31bd9 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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], } -- cgit v1.2.3