From 95135fb58a125bd63362fb95348823e6d77bffb0 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Wed, 1 May 2024 21:58:10 +1000 Subject: [PATCH] fix: add use_backend for drw1 haproxy --- .../au/region/drw1/infra/halb/haproxy.yaml | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/hieradata/country/au/region/drw1/infra/halb/haproxy.yaml b/hieradata/country/au/region/drw1/infra/halb/haproxy.yaml index 20a8e44..2ac28f7 100644 --- a/hieradata/country/au/region/drw1/infra/halb/haproxy.yaml +++ b/hieradata/country/au/region/drw1/infra/halb/haproxy.yaml @@ -12,18 +12,15 @@ profiles::haproxy::mappings: - 'puppetboard.main.unkin.net be_puppetboard' - 'puppetdbapi.main.unkin.net be_puppetdbapi' -# profiles::haproxy::listeners: -# ls_puppetdbapi_direct: -# collect_exported: false # handled in custom function -# ipaddress: "%{facts.networking.ip}" -# ports: -# - 8081 -# mode: tcp -# options: -# option: -# - tcplog -# - ssl-hello-chk -# balance: roundrobin +profiles::haproxy::frontends: + fe_http: + options: + use_backend: + - "%[req.hdr(host),lower,map(/etc/haproxy/fe_http.map,be_default)]" + fe_https: + options: + use_backend: + - "%[req.hdr(host),lower,map(/etc/haproxy/fe_https.map,be_default)]" profiles::haproxy::backends: be_puppetboard: