Add support for 'option' with ACLs
Change-Id: I1f299ee1730d32aefc127935131219851f3d9fe5
diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg
index f2f6271..55b96d3 100644
--- a/haproxy/files/haproxy.cfg
+++ b/haproxy/files/haproxy.cfg
@@ -232,6 +232,9 @@
{%- if listen.get('type', None) == 'http' %}
balance {{ listen.get('balance', 'roundrobin') }}
{%- endif %}
+ {%- for option in listen.get('options', []) %}
+ option {{ option }}
+ {%- endfor %}
{%- for server in listen.get('servers', []) %}
server {{ server.get('name', server.host) }} {{ server.host }}:{{ server.port }} {{ server.get('params', '') }}
{%- endfor %}
@@ -240,6 +243,9 @@
backend {{ acl.name }}-backend
balance {{ acl.get('balance', 'roundrobin') }}
+ {%- for option in acl.get('options', []) %}
+ option {{ option }}
+ {%- endfor %}
{%- for server in acl.get('servers', []) %}
server {{ server.get('name', server.host) }} {{ server.host }}:{{ server.port }} {{ server.get('params', '') }}
{%- endfor %}