9d156eb005
First keepalived container is started with priority 0 but the latter should be in range 1-255. This gives error and keepalived resumes with default priority 100. Change-Id: Ib11d0072a96b818d86c81a32e78118c0c82b74d8 Closes-Bug: #1494237
21 lines
395 B
Django/Jinja
21 lines
395 B
Django/Jinja
vrrp_script check_alive {
|
|
script "/check_alive.sh"
|
|
interval 2
|
|
fall 2
|
|
rise 10
|
|
}
|
|
|
|
vrrp_instance Floating {
|
|
state MASTER
|
|
interface {{ api_interface }}
|
|
virtual_router_id 51
|
|
priority {{ groups['haproxy'].index(inventory_hostname) + 1 }}
|
|
advert_int 1
|
|
virtual_ipaddress {
|
|
{{ kolla_internal_address }}
|
|
}
|
|
track_script {
|
|
check_alive
|
|
}
|
|
}
|