From 0da290ff3c806c541618a9881e703b97e72f5ff6 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 2 May 2023 01:43:06 +0200 Subject: [PATCH] feat(haproxy): Add HAProxy render template --- templates.d/haproxy/fqdn-context.env | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 templates.d/haproxy/fqdn-context.env diff --git a/templates.d/haproxy/fqdn-context.env b/templates.d/haproxy/fqdn-context.env new file mode 100644 index 0000000..71419af --- /dev/null +++ b/templates.d/haproxy/fqdn-context.env @@ -0,0 +1,7 @@ +{% set VAULT_KEY = getenv("VAULT_KEY") %} +# This file is maintained by remco and populated with data from HashiCorp +# Vault. Changes not done in Vault will be reverted when file gets rendered. + +{% for key in ls(VAULT_KEY|add:"/data") %} +{{key}}={{ getv(VAULT_KEY|add:"/data/"|add:key) }} +{% endfor %}