~openstack-charmers-archive/charms/precise/swift-storage/old-1501

« back to all changes in this revision

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

  • Committer: james.page at ubuntu
  • Date: 2014-07-28 11:54:32 UTC
  • mfrom: (32.1.3 swift-storage)
  • Revision ID: james.page@ubuntu.com-20140728115432-em4ntc388qe058e3
[corey.bryant,r=james-page] Add amulet tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
{% if units -%}
29
29
{% for service, ports in service_ports.iteritems() -%}
30
 
listen {{ service }} 0.0.0.0:{{ ports[0] }}
 
30
listen {{ service }}_ipv4 0.0.0.0:{{ ports[0] }}
 
31
    balance roundrobin
 
32
    {% for unit, address in units.iteritems() -%}
 
33
    server {{ unit }} {{ address }}:{{ ports[1] }} check
 
34
    {% endfor %}
 
35
listen {{ service }}_ipv6 :::{{ ports[0] }}
31
36
    balance roundrobin
32
37
    {% for unit, address in units.iteritems() -%}
33
38
    server {{ unit }} {{ address }}:{{ ports[1] }} check