From 2019204b016b3bbf8a9c2f934f38ad3e12b127a2 Mon Sep 17 00:00:00 2001 From: John Keates Date: Mon, 8 Jun 2015 15:16:31 +0200 Subject: [PATCH] Add initial userlist support --- haproxy/templates/haproxy.jinja | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/haproxy/templates/haproxy.jinja b/haproxy/templates/haproxy.jinja index 2fb5195..bb2534c 100644 --- a/haproxy/templates/haproxy.jinja +++ b/haproxy/templates/haproxy.jinja @@ -25,6 +25,14 @@ global stats socket {{ salt['pillar.get']('haproxy:global:stats:socketpath', '/tmp/ha_stats.sock') }} {% endif %} + {%- for id, userlist in salt['pillar.get']('haproxy:userlists', {}).iteritems() %} +userlist {{ id }} + {%- for entry in userlist.iteritems() %} + {{ entry }} + {%- endfor %} + {% endfor %} + + #--------------------------------------------------------------------- # common defaults that all the 'listen' and 'backend' sections will # use if not designated in their block