Merge "Add service specific custom haproxy config override"

This commit is contained in:
Zuul 2020-11-20 12:09:41 +00:00 committed by Gerrit Code Review
commit c9b29175ec
2 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,8 @@
vars:
service: "{{ item.value }}"
haproxy_templates:
- "{{ node_custom_config }}/haproxy-config/{{ inventory_hostname }}/{{ item.key }}.cfg"
- "{{ node_custom_config }}/haproxy-config/{{ item.key }}.cfg"
- "{{ node_custom_config }}/haproxy-config/{{ inventory_hostname }}/{{ haproxy_service_template }}"
- "{{ node_custom_config }}/haproxy-config/{{ haproxy_service_template }}"
- "templates/{{ haproxy_service_template }}"

View File

@ -0,0 +1,9 @@
---
features:
- |
Adds a means of overriding the haproxy config of individual
services. Custom template files can be placed under
``{{ node_custom_config }}/haproxy-config/`` to be rendered
with the same variables as the generic template.
Template file names must match the service to override eg.
``nova-novncproxy.cfg``.