Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default cron_hour to twice a day #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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