Externalize role
This commit is contained in:
commit
33760a4e3a
11 changed files with 222 additions and 0 deletions
22
files/etc/letsencrypt/lexicon-gandi.sh
Executable file
22
files/etc/letsencrypt/lexicon-gandi.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /etc/letsencrypt/gandi-api-keys
|
||||
|
||||
if [ "$1" != "list" ]; then
|
||||
NAME_VALUE="_acme-challenge.${CERTBOT_DOMAIN}"
|
||||
CONTENT_VALUE="${CERTBOT_VALIDATION}"
|
||||
else
|
||||
NAME_VALUE=""
|
||||
CONTENT_VALUE=""
|
||||
fi
|
||||
|
||||
/usr/bin/lexicon gandi \
|
||||
--auth-token="${AUTH_TOKEN}" \
|
||||
--name "${NAME_VALUE}" \
|
||||
--content "${CONTENT_VALUE}" \
|
||||
"$1" "${CERTBOT_DOMAIN}" TXT \
|
||||
|| exit 255
|
||||
|
||||
if [ "$1" == "create" ]; then
|
||||
sleep 1500
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue