Skip to content

Commit d095692

Browse files
authored
make renew_cron_environment optional (#383)
* make renew_cron_enviromment optional * update REFERENCE.md
1 parent 064c396 commit d095692

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

REFERENCE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ Default value: `'*'`
312312

313313
##### <a name="-letsencrypt--renew_cron_environment"></a>`renew_cron_environment`
314314

315-
Data type: `Variant[String[1], Array[String[1]]]`
315+
Data type: `Optional[Variant[String[1], Array[String[1]]]]`
316316

317317
Optional string or array of environments(s) the renewal command should have.
318318
E.g. PATH=/sbin:/usr/sbin:/bin:/usr/bin
319319

320-
Default value: `[]`
320+
Default value: `undef`
321321

322322
##### <a name="-letsencrypt--certonly_pre_hook_commands"></a>`certonly_pre_hook_commands`
323323

@@ -751,7 +751,7 @@ Default value: `$letsencrypt::renew_cron_monthday`
751751

752752
##### <a name="-letsencrypt--renew--cron_environment"></a>`cron_environment`
753753

754-
Data type: `Variant[String[1], Array[String[1]]]`
754+
Data type: `Optional[Variant[String[1], Array[String[1]]]]`
755755

756756
Optional string or array of environment variables the renewal command should have.
757757
E.g. PATH=/sbin:/usr/sbin:/bin:/usr/bin

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
Letsencrypt::Cron::Hour $renew_cron_hour = fqdn_rand(24),
9292
Letsencrypt::Cron::Minute $renew_cron_minute = fqdn_rand(60),
9393
Letsencrypt::Cron::Monthday $renew_cron_monthday = '*',
94-
Variant[String[1], Array[String[1]]] $renew_cron_environment = [],
94+
Optional[Variant[String[1], Array[String[1]]]] $renew_cron_environment = undef,
9595
Boolean $renew_disable_distro_cron = false,
9696
# define default hooks for all certonly defined resources
9797
Array[String[1]] $certonly_pre_hook_commands = [],

manifests/renew.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
Letsencrypt::Cron::Hour $cron_hour = $letsencrypt::renew_cron_hour,
4343
Letsencrypt::Cron::Minute $cron_minute = $letsencrypt::renew_cron_minute,
4444
Letsencrypt::Cron::Monthday $cron_monthday = $letsencrypt::renew_cron_monthday,
45-
Variant[String[1], Array[String[1]]] $cron_environment = $letsencrypt::renew_cron_environment,
45+
Optional[Variant[String[1], Array[String[1]]]] $cron_environment = $letsencrypt::renew_cron_environment,
4646
Boolean $disable_distro_cron = $letsencrypt::renew_disable_distro_cron,
4747
Optional[Stdlib::Unixpath] $distro_renew_cron_file = undef,
4848
Optional[String] $distro_renew_timer = undef,

0 commit comments

Comments
 (0)