mirror of
https://github.com/krislamo/puppet-acme_vault
synced 2025-01-18 07:30:34 +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
|
||||
|
||||
$requestor_bashrc_template = @(END)
|
||||
export PATH=$HOME:$PATH
|
||||
export TLDEXTRACT_CACHE=$HOME/.tld_set
|
||||
export PROVIDER=<%= @lexicon_provider %>
|
||||
export LEXICON_<%= @lexicon_provider.upcase %>_USERNAME=<%= @lexicon_username %>
|
||||
@ -70,9 +71,10 @@ END
|
||||
)
|
||||
}
|
||||
cron { "${domain}_issue":
|
||||
command => "${home_dir}/${domain}.sh",
|
||||
user => $user,
|
||||
weekday => 1,
|
||||
command => "${home_dir}/${domain}.sh",
|
||||
user => $user,
|
||||
weekday => 1,
|
||||
environment => "MAILTO=${contact_email}",
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
#!/bin/bash
|
||||
. ${HOME}/.bashrc
|
||||
|
||||
<%= $acme_script %> \
|
||||
--issue \
|
||||
<% if $staging { -%>
|
||||
|
Loading…
Reference in New Issue
Block a user