1
0
mirror of https://github.com/krislamo/puppet-acme_vault synced 2024-11-09 20:30:36 +00:00
puppet-acme_vault/templates/domain.epp

23 lines
404 B
Plaintext
Raw Normal View History

#!/bin/bash
. ${HOME}/.bashrc
2018-02-22 19:46:51 +00:00
<%= $acme_script %> \
--issue \
<% if $staging { -%>
--staging \
--server <%= $staging_url %> \
<% } else { -%>
--server <%= $prod_url %>
<% } -%>
--dns dns_lexicon \
--dnssleep 600 \
--domain "<%= $domain %>" \
2018-02-22 19:46:51 +00:00
<% $domains.each |$d| { -%>
--domain "<%= $d %>" \
<% } -%>
> /dev/null && \
<%= $acme_script %> \
--deploy \
--domain <%= $domain %> \
--deploy-hook vault_cli