~niedbalski/charms/trusty/keystone/fix-lp-1308557

« back to all changes in this revision

Viewing changes to templates/haproxy.cfg

  • Committer: Ante Karamatic
  • Date: 2014-02-25 11:34:13 UTC
  • Revision ID: ivoks@ubuntu.com-20140225113413-tlm02x1ibc6xb10d
Rewrite charm to get it more in line with other OpenStack charms.

Added support for contexts and templating. Makes use of charm-helpers
instead of relaying on its own tools (probably could use some additional work).

HA is currently non-functional. ETA for fixing: less than 2 days.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    stats uri /
26
26
    stats auth admin:password
27
27
 
 
28
{% if units -%}
28
29
{% for service, ports in service_ports.iteritems() -%}
29
30
listen {{ service }} 0.0.0.0:{{ ports[0] }}
30
31
    balance roundrobin
33
34
    server {{ unit }} {{ address }}:{{ ports[1] }} check
34
35
    {% endfor %}
35
36
{% endfor %}
 
37
{% endif -%}