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: