~james-page/charm-helpers/kilo-enable

« back to all changes in this revision

Viewing changes to charmhelpers/contrib/openstack/templates/haproxy.cfg

[hopem, r=gnuoy] only add ipv6 addresses to haproxy.conf if ipv6 enable

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{% for service, ports in service_ports.items() -%}
39
39
frontend tcp-in_{{ service }}
40
40
    bind *:{{ ports[0] }}
 
41
    {% if ipv6 -%}
41
42
    bind :::{{ ports[0] }}
 
43
    {% endif -%}
42
44
    {% for frontend in frontends -%}
43
45
    acl net_{{ frontend }} dst {{ frontends[frontend]['network'] }}
44
46
    use_backend {{ service }}_{{ frontend }} if net_{{ frontend }}