Fixup early execution of haproxy config generation
This commit is contained in:
parent
50da410871
commit
ce52adaad1
@ -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 %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user