summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-24 11:30:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-24 11:30:13 -0300
commit66f92221aa0cd683362af956e693aed12d30e4bd (patch)
treef6e0535a5eec447ccd6d27af126b20e726e4fb22 /manifests
parentd1f83a9de838767121916452ef285acc4270d5fa (diff)
downloadpuppet-certbot-66f92221aa0cd683362af956e693aed12d30e4bd.tar.gz
puppet-certbot-66f92221aa0cd683362af956e693aed12d30e4bd.tar.bz2
Cert renew twice a day
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp8
1 files 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],
}