mirror of https://github.com/Aidaho12/haproxy-wi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
488 B
30 lines
488 B
global_defs {
|
|
router_id LVS_DEVEL
|
|
}
|
|
#health-check for keepalive
|
|
vrrp_script chk_haproxy {
|
|
script "pgrep haproxy"
|
|
interval 2
|
|
weight 3
|
|
}
|
|
vrrp_instance VI_1 {
|
|
state {{MASTER}}
|
|
interface {{ETH}}
|
|
virtual_router_id 100
|
|
priority 102
|
|
|
|
#check if we are still running
|
|
track_script {
|
|
chk_haproxy
|
|
}
|
|
|
|
advert_int 1
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass VerySecretPass
|
|
}
|
|
virtual_ipaddress {
|
|
{{IP}}
|
|
}
|
|
}
|