Skip to content

Commit

Permalink
handle $dnssleep in profiles the same way as the global parameter, refs
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Jun 16, 2020
1 parent 41dfe45 commit d2af1cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manifests/request.pp
Expand Up @@ -114,7 +114,9 @@
notify { "hook params for domain ${domain}: ${hook_params}": loglevel => debug }

# Collect additional options for acme.sh.
if ($profile['options']['dnssleep']) {
if ($profile['options']['dnssleep']
and ($profile['options']['dnssleep'] =~ Integer)
and ($profile['options']['dnssleep'] > 0)) {
$_dnssleep = "--dnssleep ${profile['options']['dnssleep']}"
} elsif (defined('$acme::dnssleep') and ($acme::dnssleep > 0)) {
$_dnssleep = "--dnssleep ${::acme::dnssleep}"
Expand Down

0 comments on commit d2af1cd

Please sign in to comment.