Clark Boylan 15e0d6c7df Move haproxy config into /var/lib/haproxy
Rsyslog on Noble has apparmor rules that restrict rsyslog socket
creation to /var/lib/*/dev/log. Previously we were configuring haproxy
hosts to create an rsyslog socket for haproxy at /var/haproxy/dev/log
which doesn't match the apparmor rule so gets denied.

To address this we move all the host side haproxy config from
/var/haproxy to /var/lib/haproxy. This allows rsyslog to create the
socket. To avoid needing to update docker images (for haproxy statsd)
and to continue to make the haproxy container itself happy we don't
adjust paths on the target side of our bind mounts. This means some
things still refer to /var/haproxy but they should all be within
containers.

I don't believe this will be impactful to existing load balancer
servers. We should deploy new content to /var/lib/haproxy then
automatically restart services (rsyslog and haproxy container) because
their configs are updating. One potential problem with this is rsyslog
will restart before the containers do and its log path will have moved.
If we are concerned about this we can configure rsyslog to continue to
attempt to create the old path in addition to the new path (this will
fail on Noble).

Change-Id: I4582e6b2dda188583f76265ab78bcb00a302e375
2025-02-12 09:10:08 -08:00
..
2021-09-17 12:35:12 +10:00
2019-04-22 11:47:11 +00:00
2019-04-20 09:41:45 -07:00
2023-04-28 12:03:30 +10:00
2024-04-29 14:17:55 -07:00
2022-04-12 09:29:37 +10:00
2020-10-29 07:59:42 +11:00
2024-12-03 12:33:48 +01:00
2022-04-12 09:29:37 +10:00
2025-02-05 07:56:43 -08:00
2021-07-15 23:25:10 +00:00
2020-03-18 17:33:08 +01:00
2023-10-20 18:10:08 +00:00
2021-12-13 12:46:05 +00:00
2018-08-23 21:34:47 +10:00
2022-09-22 15:05:32 -07:00
2019-04-22 11:47:11 +00:00
2019-04-22 11:47:11 +00:00
2024-09-18 16:37:40 -07:00