From 1247c7f0be91c83b2f9ffc0e5072310819450d61 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Fri, 11 Oct 2024 12:03:24 +0200 Subject: [PATCH] Use hiera data for ip4/ip6 --- .../etc/puppet/modules/cdn/templates/cache/haproxy.cfg.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/global/overlay/etc/puppet/modules/cdn/templates/cache/haproxy.cfg.erb b/global/overlay/etc/puppet/modules/cdn/templates/cache/haproxy.cfg.erb index f632368..0c5d328 100644 --- a/global/overlay/etc/puppet/modules/cdn/templates/cache/haproxy.cfg.erb +++ b/global/overlay/etc/puppet/modules/cdn/templates/cache/haproxy.cfg.erb @@ -28,8 +28,10 @@ defaults errorfile 504 /usr/local/etc/haproxy/errors/504.http frontend customer - bind <%= @customer_ip %>:80 - bind <%= @customer_ip %>:443 ssl crt /certs-private/combined.pem + bind <%= @cache_secrets['customers'][@customer]['ip4'] %>:80 + bind <%= @cache_secrets['customers'][@customer]['ip6'] %>:80 + bind <%= @cache_secrets['customers'][@customer]['ip4'] %>:443 ssl crt /certs-private/combined.pem + bind <%= @cache_secrets['customers'][@customer]['ip6'] %>:443 ssl crt /certs-private/combined.pem default_backend varnish backend varnish