Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit b3efd96

Browse files
committed
allow setting check_remote_wait on a domain
1 parent 6f0ce74 commit b3efd96

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

manifests/domain.pp

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
# Email for registration account. Defaults to undef
3737
# [*domain_check_remote*]
3838
# BOOL checks if certificate is available and online. Defaults to global configuration.
39+
# [*domain_check_remote_wait*]
40+
# Seconds to wait after executing reload_command before checking remote certificate.
3941
# [*domain_reload_command*]
4042
# Set command to reload e.g Webserver. Defaults to Global Command
4143
# [*domain_renew_allow*]
@@ -77,6 +79,7 @@
7779
$domain_account_key_length = $getssl::params::domain_account_key_length,
7880
$domain_account_mail = $getssl::params::domain_account_mail,
7981
$domain_check_remote = $getssl::params::domain_check_remote,
82+
$domain_check_remote_wait = $getssl::params::domain_check_remote_wait,
8083
$domain_reload_command = $getssl::params::domain_reload_command,
8184
$domain_renew_allow = $getssl::params::domain_renew_allow,
8285
$domain_server_type = $getssl::params::domain_server_type,
@@ -180,6 +183,7 @@
180183
'domain_cert_location' => $domain_cert_location,
181184
'domain_chain_location' => $domain_chain_location,
182185
'domain_check_remote' => $domain_check_remote,
186+
'domain_check_remote_wait' => $domain_check_remote_wait,
183187
'domain_key_cert_location' => $domain_key_cert_location,
184188
'domain_key_location' => $domain_key_location,
185189
'domain_pem_location' => $domain_pem_location,

manifests/params.pp

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
$domain_account_key_length = 4096
3333
$domain_account_mail = undef
3434
$domain_check_remote = true
35+
$domain_check_remote_wait = undef
3536
$domain_reload_command = undef
3637
$domain_renew_allow = 30
3738
$domain_server_type = 'https'

templates/domain_getssl.cfg.epp

+3
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ RENEW_ALLOW=<%= $domain_renew_allow %>
6060
# an update to confirm correct certificate is running (if CHECK_REMOTE) is set to true
6161
SERVER_TYPE="<%= $domain_server_type -%>"
6262
CHECK_REMOTE="<%= $domain_check_remote -%>"
63+
<% if $domain_check_remote_wait { -%>
64+
CHECK_REMOTE_WAIT="<%= $domain_check_remote_wait -%>"
65+
<% } -%>

0 commit comments

Comments
 (0)