aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/open-contrail/templates/provision/keepalived-conf.j2
blob: b16c4a2563f53a01450b90040c16278c03d98990 (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
vrrp_script chk_haproxy {
	script "killall -0 haproxy"
	interval 1
	timeout 3
	rise 2
	fall 2
}

vrrp_instance INTERNAL_1 {
	interface {{ contrail_device }}
	state MASTER
	preemt_delay 7
	grap_master_delay 5
	grap_master_repeat 3
	grap_master_refresh 1
	advert_int 1
	virtual_router_id 85
	vmac_xmit_base
	priority 10{{ item.0 }}
	virtual_ipaddress {
		{{ contrail_haproxy_address }} dev {{ contrail_device }}
	}
	track_script {
		chk_haproxy
	}
	track_interface {
		{{ contrail_device }}
	}
}