27 lines
513 B
Bash
27 lines
513 B
Bash
! Configuration File for keepalived
|
|
|
|
global_defs {
|
|
router_id $keepalived_router_id
|
|
script_user root
|
|
enable_script_security
|
|
lvs_sync_daemon $eth10g VI_1
|
|
}
|
|
|
|
vrrp_instance VI_1 {
|
|
state BACKUP
|
|
interface br0
|
|
garp_master_delay 10
|
|
smtp_alert
|
|
virtual_router_id 51
|
|
priority 100
|
|
advert_int 1
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass $keepalived_password
|
|
}
|
|
virtual_ipaddress {
|
|
$keepalived_virtual_ip
|
|
}
|
|
notify /etc/one/one-cluster.sh
|
|
}
|