~openstack-charmers-archive/charms/precise/glance/trunk

« back to all changes in this revision

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

  • Committer: Liam Young
  • Date: 2016-01-28 09:03:45 UTC
  • Revision ID: liam.young@canonical.com-20160128090345-nocag3q2wcrj6xjn
16.01 Charm release

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    option tcplog
13
13
    option dontlognull
14
14
    retries 3
15
 
    timeout queue 1000
16
 
    timeout connect 1000
17
 
{% if haproxy_client_timeout -%}
 
15
{%- if haproxy_queue_timeout %}
 
16
    timeout queue {{ haproxy_queue_timeout }}
 
17
{%- else %}
 
18
    timeout queue 5000
 
19
{%- endif %}
 
20
{%- if haproxy_connect_timeout %}
 
21
    timeout connect {{ haproxy_connect_timeout }}
 
22
{%- else %}
 
23
    timeout connect 5000
 
24
{%- endif %}
 
25
{%- if haproxy_client_timeout %}
18
26
    timeout client {{ haproxy_client_timeout }}
19
 
{% else -%}
 
27
{%- else %}
20
28
    timeout client 30000
21
 
{% endif -%}
22
 
 
23
 
{% if haproxy_server_timeout -%}
 
29
{%- endif %}
 
30
{%- if haproxy_server_timeout %}
24
31
    timeout server {{ haproxy_server_timeout }}
25
 
{% else -%}
 
32
{%- else %}
26
33
    timeout server 30000
27
 
{% endif -%}
 
34
{%- endif %}
28
35
 
29
 
listen stats {{ stat_port }}
 
36
listen stats
 
37
    bind {{ local_host }}:{{ stat_port }}
30
38
    mode http
31
39
    stats enable
32
40
    stats hide-version
33
41
    stats realm Haproxy\ Statistics
34
42
    stats uri /
35
 
    stats auth admin:password
 
43
    stats auth admin:{{ stat_password }}
36
44
 
37
45
{% if frontends -%}
38
46
{% for service, ports in service_ports.items() -%}