Files
openstack-ansible-haproxy_s…/releasenotes/notes/haproxy-maps-787084d7f161c27e.yaml
Jonathan Rosser d548b7e5ff Add support for haproxy map files
HAProxy supports the use of map files for selecting backends, or
a number of other functions. See [1] and [2].

This patch adds the key `maps` for each service definition allowing
fragments of a complete map to be defined across all the services,
with each service contributing some elements to the overall map file.

The service enabled/disabled and state flags are observed to add and
remove entries from the map file, and individual map entries can also
be marked as present/absent to make inclusion conditional.

[1] https://www.haproxy.com/blog/introduction-to-haproxy-maps/
[2] https://www.haproxy.com/documentation/hapee/latest/configuration/map-files/syntax/

Change-Id: I755c18a4d33ee69c42d68a50daa63614a2b2feb7
2023-03-16 13:17:39 +01:00

12 lines
561 B
YAML

---
features:
- |
A new key `haproxy_map_entries` is now able to be configured for each
haproxy service definition to allow arbitrary entries to be placed in
any number of haproxy map files which may then be referenced in other
directives in the haproxy config file such as ``use_backend`` or
``http-request``. The complete map files are constructed from the
fragments defined across all the service definitions and are assembled
into a complete map file in alphanumeric sort order, or optionally with
a user defined ordering.