~corey.bryant/charms/trusty/keystone/python-six

« back to all changes in this revision

Viewing changes to templates/haproxy.cfg

  • Committer: James Page
  • Date: 2014-03-27 10:54:38 UTC
  • mfrom: (55.1.22 keystone)
  • mto: (52.4.7 keystone)
  • mto: This revision was merged to the branch mainline in revision 60.
  • Revision ID: james.page@canonical.com-20140327105438-oid8czi9ud51iut1
Merge ssl-everywhere branch (may break stuff)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
defaults
10
10
    log global
11
 
    mode http
12
 
    option httplog
 
11
    mode tcp
 
12
    option tcplog
13
13
    option dontlognull
14
14
    retries 3
15
15
    timeout queue 1000
19
19
 
20
20
listen stats :8888
21
21
    mode http
 
22
    option httplog
22
23
    stats enable
23
24
    stats hide-version
24
25
    stats realm Haproxy\ Statistics
28
29
{% for service, ports in service_ports.iteritems() -%}
29
30
listen {{ service }} 0.0.0.0:{{ ports[0] }}
30
31
    balance roundrobin
31
 
    option tcplog
32
32
    {% for unit, address in units.iteritems() -%}
33
33
    server {{ unit }} {{ address }}:{{ ports[1] }} check
34
34
    {% endfor %}