From 9ce624434ab4869c9c9a3810ef8fb555f7d034a1 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 8 Nov 2025 20:59:15 +1100 Subject: [PATCH] feat: add stalwart autoconfig - add autoconfig/autodiscovery cname/backends for stalwart --- hieradata/country/au/region/syd1/infra/halb/haproxy2.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hieradata/country/au/region/syd1/infra/halb/haproxy2.yaml b/hieradata/country/au/region/syd1/infra/halb/haproxy2.yaml index 37cab85..8666ed9 100644 --- a/hieradata/country/au/region/syd1/infra/halb/haproxy2.yaml +++ b/hieradata/country/au/region/syd1/infra/halb/haproxy2.yaml @@ -15,6 +15,8 @@ profiles::haproxy::dns::vrrp_cnames: - mail-in.main.unkin.net - imap.main.unkin.net - imaps.main.unkin.net + - autoconfig.main.unkin.net. + - autodiscover.main.unkin.net. profiles::haproxy::mappings: fe_http: @@ -34,6 +36,8 @@ profiles::haproxy::mappings: - 'grafana.unkin.net be_grafana' - 'dashboard.ceph.unkin.net be_ceph_dashboard' - 'mail-webadmin.main.unkin.net be_stalwart_webadmin' + - 'autoconfig.main.unkin.net be_stalwart_webadmin' + - 'autodiscovery.main.unkin.net be_stalwart_webadmin' fe_https: ensure: present mappings: @@ -51,6 +55,8 @@ profiles::haproxy::mappings: - 'grafana.unkin.net be_grafana' - 'dashboard.ceph.unkin.net be_ceph_dashboard' - 'mail-webadmin.main.unkin.net be_stalwart_webadmin' + - 'autoconfig.main.unkin.net be_stalwart_webadmin' + - 'autodiscovery.main.unkin.net be_stalwart_webadmin' profiles::haproxy::frontends: fe_http: @@ -73,6 +79,8 @@ profiles::haproxy::frontends: - 'acl_grafana req.hdr(host) -i grafana.unkin.net' - 'acl_ceph_dashboard req.hdr(host) -i dashboard.ceph.unkin.net' - 'acl_stalwart_webadmin req.hdr(host) -i mail-webadmin.main.unkin.net' + - 'acl_stalwart_webadmin req.hdr(host) -i autoconfig.main.unkin.net' + - 'acl_stalwart_webadmin req.hdr(host) -i autodiscovery.main.unkin.net' - 'acl_internalsubnets src 198.18.0.0/16 10.10.12.0/24' use_backend: - "%[req.hdr(host),lower,map(/etc/haproxy/fe_https.map,be_default)]"