Trying to fix the nesting mistake
This commit is contained in:
parent
454c5ba973
commit
b089a7feb4
1 changed files with 6 additions and 5 deletions
|
@ -56,9 +56,10 @@ defaults
|
|||
{%- for frontend in salt['pillar.get']('haproxy:frontends', {}).iteritems() %}
|
||||
frontend {{ frontend[1].name }}
|
||||
bind {{ frontend[1].bind }}
|
||||
{%- if 'redirects' in backend[1] %}
|
||||
{%- for redirect in frontend[1].redirects %}
|
||||
redirect {{ redirect }}{% endfor %}
|
||||
{%- if 'redirects' in frontend[1] %}
|
||||
{%- for front_redirect in frontend[1].redirects %}
|
||||
redirect {{ front_redirect }}
|
||||
{% endfor %}
|
||||
{-% endif %}
|
||||
{%- if 'acls' in frontend[1] %}
|
||||
{%- for acl in frontend[1].acls %}
|
||||
|
|
Loading…
Reference in a new issue