aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/open-contrail/templates/provision/haproxy-contrail-cfg.j2
blob: e99917bd4c48ad9cf051ffe26839b52e73b430a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#contrail-marker-start

listen contrail-stats
	bind *:5937
	mode http
	stats enable
	stats uri /
	stats auth haproxy:contrail123

listen neutron-server
	bind *:9696
	balance roundrobin
	option nolinger
{% for cur_host in groups['opencontrail_config'] %}	server {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }} {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }}:9697 check inter 2000 rise 2 fall 3
{% endfor %}

listen contrail-api
	bind *:8082
	balance roundrobin
	option nolinger
	timeout client 3m
	timeout server 3m
{% for cur_host in groups['opencontrail_config'] %}	server {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }} {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }}:9100 check inter 2000 rise 2 fall 3
{% endfor %}

listen contrail-discovery
	bind *:5998
	balance roundrobin
	option nolinger
{% for cur_host in groups['opencontrail_config'] %}	server {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }} {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }}:9110 check inter 2000 rise 2 fall 3
{% endfor %}

listen contrail-analytics-api
	bind *:8081
	balance roundrobin
	option nolinger
	option tcp-check
	tcp-check connect port 6379
	default-server error-limit 1 on-error mark-down
{% for cur_host in groups['opencontrail_collector'] %}	server {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }} {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }}:9081 check inter 2000 rise 2 fall 3
{% endfor %}


listen rabbitmq
	bind *:5673
	mode tcp
	balance roundrobin
	maxconn 10000
	option tcplog
	option tcpka
	option redispatch
	timeout client 48h
	timeout server 48h
{% for cur_host in groups['opencontrail_config'] %}	server {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }} {{ hostvars[cur_host]['ansible_' + internal_nic].ipv4.address }}:5672 check inter 2000 rise 2 fall 3 weight 1 maxconn 500
{% endfor %}

#contrail-marker-end