From 12f8b6a33ef030d632ffb30a2b66e38872c4f914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Ku=CC=88bler?= Date: Fri, 22 Apr 2022 19:45:10 +0200 Subject: [PATCH] (#47) change the default cronjob hour to twice a day --- REFERENCE.md | 4 ++-- manifests/certonly.pp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index 55fa4328..b5f210de 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -888,9 +888,9 @@ Default value: ``undef`` Data type: `Variant[Integer[0,23], String, Array]` Optional hour(s) that the renewal command should execute. -e.g. '[0,12]' execute at midnight and midday. Default - seeded random hour. +e.g. '[0,12]' execute at midnight and midday. Default - seeded random hour, twice a day. -Default value: `fqdn_rand(24, $title)` +Default value: `[fqdn_rand(12, $title), fqdn_rand(12, $title) + 12]` ##### `cron_minute` diff --git a/manifests/certonly.pp b/manifests/certonly.pp index 3e24117b..905764cd 100644 --- a/manifests/certonly.pp +++ b/manifests/certonly.pp @@ -96,7 +96,7 @@ # @param cron_success_command Representation of a command that should be run if the renewal command succeeds. # @param cron_hour # Optional hour(s) that the renewal command should execute. -# e.g. '[0,12]' execute at midnight and midday. Default - seeded random hour. +# e.g. '[0,12]' execute at midnight and midday. Default - seeded random hour, twice a day. # @param cron_minute # Optional minute(s) that the renewal command should execute. # e.g. 0 or '00' or [0,30]. Default - seeded random minute. @@ -130,7 +130,7 @@ Optional[String[1]] $cron_before_command = undef, Optional[String[1]] $cron_success_command = undef, Array[Variant[Integer[0, 59], String[1]]] $cron_monthday = ['*'], - Variant[Integer[0,23], String, Array] $cron_hour = fqdn_rand(24, $title), + Variant[Integer[0,23], String, Array] $cron_hour = [fqdn_rand(12, $title), fqdn_rand(12, $title) + 12], Variant[Integer[0,59], String, Array] $cron_minute = fqdn_rand(60, fqdn_rand_string(10, $title)), Stdlib::Unixpath $config_dir = $letsencrypt::config_dir, Variant[String[1], Array[String[1]]] $pre_hook_commands = [],