~mbruzek/charms/trusty/haproxy/consul-template

« back to all changes in this revision

Viewing changes to files/consul/haproxy.ctmpl

  • Committer: Matthew Bruzek
  • Date: 2015-06-01 22:10:59 UTC
  • Revision ID: matthew.bruzek@canonical.com-20150601221059-zal41asg6s4pmao7
Adding the consul-template configuration and the ctmpl file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
global
 
2
    maxconn 4096
 
3
    user haproxy
 
4
    group haproxy
 
5
    spread-checks 0
 
6
 
 
7
defaults
 
8
    log global
 
9
    mode http
 
10
    option httplog
 
11
    option dontlognull
 
12
    retries 3
 
13
    timeout queue 20000
 
14
    timeout client 50000
 
15
    timeout connect 5000
 
16
    timeout server 50000
 
17
 
 
18
frontend haproxy-0-80
 
19
    bind 0.0.0.0:80
 
20
    default_backend haproxy_service
 
21
 
 
22
backend haproxy_service
 
23
    balance leastconn{{range service "hello"}}
 
24
    service {{.Node}} {{.Address}}:{{.Port}}{{end}}