Skip to content

Commit

Permalink
(voxpupuli#47) change the default cronjob hour to twice a day
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuebler committed Apr 22, 2022
1 parent 841f5c7 commit 12f8b6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]`

##### <a name="cron_minute"></a>`cron_minute`

Expand Down
4 changes: 2 additions & 2 deletions manifests/certonly.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 = [],
Expand Down

0 comments on commit 12f8b6a

Please sign in to comment.