Add initial userlist support
This commit is contained in:
parent
cd237e0109
commit
2019204b01
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ global
|
||||||
stats socket {{ salt['pillar.get']('haproxy:global:stats:socketpath', '/tmp/ha_stats.sock') }}
|
stats socket {{ salt['pillar.get']('haproxy:global:stats:socketpath', '/tmp/ha_stats.sock') }}
|
||||||
{% endif %}
|
{% 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
|
# common defaults that all the 'listen' and 'backend' sections will
|
||||||
# use if not designated in their block
|
# use if not designated in their block
|
||||||
|
|
Loading…
Reference in a new issue