From 9b3b61485d958a55d2bb8553e5e5e9a87daba5db Mon Sep 17 00:00:00 2001 From: John Keates Date: Wed, 26 Aug 2015 18:08:06 +0200 Subject: [PATCH] Add support for rspadd, capture and http-responses --- haproxy/templates/haproxy.jinja | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/haproxy/templates/haproxy.jinja b/haproxy/templates/haproxy.jinja index ef5fd0a..48a0d6e 100644 --- a/haproxy/templates/haproxy.jinja +++ b/haproxy/templates/haproxy.jinja @@ -115,6 +115,27 @@ frontend {{ frontend[1].name }} {%- endfor %} {%- endif %} +# frontend http-responses + {%- if 'http-responses' in frontend[1] %} + {%- for http_response in frontend[1].http_responses %} + http-response {{ http_response }} + {% endfor %} + {%- endif %} + +# frontend rspadds + {%- if 'rspadd' in frontend[1] %} + {%- for rspadd in frontend[1].rspadd %} + rspadd {{ rspadd }} + {%- endfor %} + {%- endif %} + +# frontend captures + {%- if 'captures' in frontend[1] %} + {%- for capture in frontend[1].captures %} + capture {{ capture }} + {%- endfor %} + {%- endif %} + # backend targets default_backend {{ frontend[1].default_backend }} {%-if 'use_backends' in frontend[1] -%}