e6b230d784
TrivialFix Closes-Bug: #1551314 Change-Id: Id85859500aec283703b6b6714abf213a42286182
45 lines
982 B
Django/Jinja
45 lines
982 B
Django/Jinja
vrrp_script check_alive {
|
|
script "/check_alive.sh"
|
|
interval 2
|
|
fall 2
|
|
rise 10
|
|
}
|
|
|
|
vrrp_instance kolla_internal_vip {
|
|
state MASTER
|
|
interface {{ api_interface }}
|
|
virtual_router_id 51
|
|
priority {{ groups['haproxy'].index(inventory_hostname) + 1 }}
|
|
advert_int 1
|
|
virtual_ipaddress {
|
|
{{ kolla_internal_vip_address }}
|
|
}
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass {{ keepalived_password }}
|
|
}
|
|
track_script {
|
|
check_alive
|
|
}
|
|
}
|
|
|
|
{% if haproxy_enable_external_vip | bool %}
|
|
vrrp_instance kolla_external_vip {
|
|
state MASTER
|
|
interface {{ kolla_external_vip_interface }}
|
|
virtual_router_id 52
|
|
priority {{ groups['haproxy'].index(inventory_hostname) + 1 }}
|
|
advert_int 1
|
|
virtual_ipaddress {
|
|
{{ kolla_external_vip_address }}
|
|
}
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass {{ keepalived_password }}
|
|
}
|
|
track_script {
|
|
check_alive
|
|
}
|
|
}
|
|
{% endif %}
|