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

22 lines
376 B
Bash

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