1
0
mirror of https://github.com/krislamo/puppet-acme_vault synced 2025-09-09 03:49:29 +00:00

update acme_vault repo - Aug-8-2019

This commit is contained in:
drew
2019-08-08 12:01:55 -04:00
parent 2c7ac6c72f
commit 012f5295fe
5 changed files with 50 additions and 10 deletions

View File

@@ -7,13 +7,32 @@
--staging \
--server <%= $staging_url %> \
<% } else { -%>
--server <%= $prod_url %>
--server <%= $prod_url %> \
<% } -%>
--dns dns_lexicon \
--dnssleep 600 \
--domain "<%= $domain %>" \
<% $domains.each |$d| { -%>
--domain "<%= $d %>" \
--dnssleep 1800 \
--domain "<%= $domain %>" --challenge-alias <%= "$domain" %> \
<% $domains.each |$d| {
# this uses the challenge-alias override if specified, otherwise
# uses the sld.tld of the given domain
if $overrides[$d] {
$ca = $overrides[$d]
}
else {
# we need to calculate the challenge-alias
$ds = split($d, '[.]')
# we don't want to count the wildcard, so strip it off
if $ds[0] == "*" {
$clean = $ds[1, -1]
}
else {
$clean = $ds[0, -1]
}
$ca = join($clean, ".")
}
-%>
--domain "<%= $d %>" --challenge-alias <%= "${ca}" %> \
<% } -%>
> /dev/null && \
<%= $acme_script %> \