mirror of
https://github.com/krislamo/puppet-acme_vault
synced 2025-09-09 03:49:29 +00:00
requester first pass
This commit is contained in:
5
templates/bashrc
Normal file
5
templates/bashrc
Normal file
@@ -0,0 +1,5 @@
|
||||
export VAULT_TOKEN=<%= @vault_token %>
|
||||
export VAULT_ADDR=<%= @vault_addr %>
|
||||
export LEXICON_PROVIDER=namecheap
|
||||
export LEXICON_NAMECHEAP_USERNAME=<%= @dns_api_username %>
|
||||
export LEXICON_NAMECHEAP_TOKEN=$(<%= @vault_bin %> read -field=value /secret/dns_api/token)
|
14
templates/domain.epp
Normal file
14
templates/domain.epp
Normal file
@@ -0,0 +1,14 @@
|
||||
<%= $acme_script %> \
|
||||
--issue \
|
||||
<% if $staging { -%>
|
||||
--staging \
|
||||
--server <%= $staging_url %> \
|
||||
<% } else { -%>
|
||||
--server <%= $prod_url %>
|
||||
<% } -%>
|
||||
--dns dns_lexicon \
|
||||
--dnssleep 600 \
|
||||
<% $domains.each |$d| { -%>
|
||||
--domain "<%= $d %>" \
|
||||
<% } -%>
|
||||
|
Reference in New Issue
Block a user