Skip to content

Commit 6473fd1

Browse files
Wasaacdarmach
authored andcommitted
Add service specific custom haproxy config override
Change-Id: If6c50606fa3da353728ae4d916df20fcc95b8927
1 parent 61fbf96 commit 6473fd1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ansible/roles/haproxy-config/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
vars:
44
service: "{{ item.value }}"
55
haproxy_templates:
6+
- "{{ node_custom_config }}/haproxy-config/{{ inventory_hostname }}/{{ item.key }}.cfg"
7+
- "{{ node_custom_config }}/haproxy-config/{{ item.key }}.cfg"
68
- "{{ node_custom_config }}/haproxy-config/{{ inventory_hostname }}/{{ haproxy_service_template }}"
79
- "{{ node_custom_config }}/haproxy-config/{{ haproxy_service_template }}"
810
- "templates/{{ haproxy_service_template }}"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
features:
3+
- |
4+
Adds a means of overriding the haproxy config of individual
5+
services. Custom template files can be placed under
6+
``{{ node_custom_config }}/haproxy-config/`` to be rendered
7+
with the same variables as the generic template.
8+
Template file names must match the service to override eg.
9+
``nova-novncproxy.cfg``.

0 commit comments

Comments
 (0)