mirror of
https://github.com/KevinMidboe/schleppe-ha-project.git
synced 2026-02-12 18:49:08 +00:00
traefik routes cacheable content to varnish.
Web & varnish IP addresses generated to group vars from pulumi state
This commit is contained in:
14
ansible/scripts/update-config_certbot-domains.sh
Normal file
14
ansible/scripts/update-config_certbot-domains.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/local/bin/bash
|
||||
#
|
||||
# Usage: ./scripts/update-config_certbot-domains.sh | pbcopy
|
||||
|
||||
CERTBOT_EXPORT_KEY=certbot_cloudflare_domains
|
||||
|
||||
EXPORT_VARIABLES="$(pwd)/group_vars/haproxy.yml"
|
||||
yq -i 'del(.certbot_cloudflare_domains)' $EXPORT_VARIABLES
|
||||
|
||||
cd ../hetzner-pulumi
|
||||
pulumi stack output --json | jq -r --arg key $CERTBOT_EXPORT_KEY '
|
||||
($key + ":\n") +
|
||||
(.inventory.domains | map(" - " + .) | join("\n"))
|
||||
' >> $EXPORT_VARIABLES
|
||||
Reference in New Issue
Block a user