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

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/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:
 
1
global
 
2
    log 127.0.0.1 local0
 
3
    log 127.0.0.1 local1 notice
 
4
    maxconn 20000
 
5
    user haproxy
 
6
    group haproxy
 
7
    spread-checks 0
 
8
 
 
9
defaults
 
10
    log global
 
11
    mode tcp
 
12
    option tcplog
 
13
    option dontlognull
 
14
    retries 3
 
15
    timeout queue 1000
 
16
    timeout connect 1000
 
17
    timeout client 30000
 
18
    timeout server 30000
 
19
 
 
20
listen stats :8888
 
21
    mode http
 
22
    stats enable
 
23
    stats hide-version
 
24
    stats realm Haproxy\ Statistics
 
25
    stats uri /
 
26
    stats auth admin:password
 
27
 
 
28
{% if units -%}
 
29
{% for service, ports in service_ports.iteritems() -%}
 
30
listen {{ service }} 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
{% endfor -%}
 
36
{% endif -%}