From 5a1d62f9ac9b0abfebd4616c15501848c1aa694d Mon Sep 17 00:00:00 2001 From: Dag Stenstad Date: Wed, 11 Oct 2017 15:55:03 +0200 Subject: [PATCH] Add timeouts handling to backend section of template. --- haproxy/templates/haproxy.jinja | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/haproxy/templates/haproxy.jinja b/haproxy/templates/haproxy.jinja index 1b5f961..d7f62be 100644 --- a/haproxy/templates/haproxy.jinja +++ b/haproxy/templates/haproxy.jinja @@ -472,6 +472,11 @@ backend {{ backend.get('name', backend_name) }} {%- if 'balance' in backend %} balance {{ backend.balance }} {%- endif %} + {%- if 'timeouts' in backend %} + {%- for timeout in backend.timeouts %} + timeout {{ timeout }} + {%- endfor %} + {%- endif %} {%- if 'options' in backend %} {%- if backend.options is string %} option {{ backend.options }}