Fixup early execution of haproxy config generation

This commit is contained in:
James Page 2014-03-27 11:36:12 +00:00
parent 50da410871
commit ce52adaad1

View File

@ -26,6 +26,7 @@ listen stats :8888
stats uri /
stats auth admin:password
{% if units %}
{% for service, ports in service_ports.iteritems() -%}
listen {{ service }} 0.0.0.0:{{ ports[0] }}
balance roundrobin
@ -33,3 +34,5 @@ listen {{ service }} 0.0.0.0:{{ ports[0] }}
server {{ unit }} {{ address }}:{{ ports[1] }} check
{% endfor %}
{% endfor %}
{% endif %}