mirror of
https://github.com/krislamo/puppet-acme_vault
synced 2024-11-09 20:30:36 +00:00
add path, shebang, source .bashrc, MAILTO in cron
This commit is contained in:
parent
eaa3dd2e4d
commit
95273e46d4
@ -23,6 +23,7 @@ class acme_vault::requestor (
|
|||||||
include acme_vault::common
|
include acme_vault::common
|
||||||
|
|
||||||
$requestor_bashrc_template = @(END)
|
$requestor_bashrc_template = @(END)
|
||||||
|
export PATH=$HOME:$PATH
|
||||||
export TLDEXTRACT_CACHE=$HOME/.tld_set
|
export TLDEXTRACT_CACHE=$HOME/.tld_set
|
||||||
export PROVIDER=<%= @lexicon_provider %>
|
export PROVIDER=<%= @lexicon_provider %>
|
||||||
export LEXICON_<%= @lexicon_provider.upcase %>_USERNAME=<%= @lexicon_username %>
|
export LEXICON_<%= @lexicon_provider.upcase %>_USERNAME=<%= @lexicon_username %>
|
||||||
@ -73,6 +74,7 @@ END
|
|||||||
command => "${home_dir}/${domain}.sh",
|
command => "${home_dir}/${domain}.sh",
|
||||||
user => $user,
|
user => $user,
|
||||||
weekday => 1,
|
weekday => 1,
|
||||||
|
environment => "MAILTO=${contact_email}",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
. ${HOME}/.bashrc
|
||||||
|
|
||||||
<%= $acme_script %> \
|
<%= $acme_script %> \
|
||||||
--issue \
|
--issue \
|
||||||
<% if $staging { -%>
|
<% if $staging { -%>
|
||||||
|
Loading…
Reference in New Issue
Block a user