Files
loogle-scripts/configs/keepalived_pi2.conf
T

36 lines
709 B
Plaintext

global_defs {
enable_script_security
script_user root
}
vrrp_script chk_ha {
script "/usr/local/sbin/keepalived-check-ha.sh"
interval 5
weight -30
fall 3
rise 2
user root
}
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 100
advert_int 1
preempt_delay 30
authentication {
auth_type PASS
auth_pass @Dedelove1
}
virtual_ipaddress {
192.168.128.85
}
track_script {
chk_ha
}
notify_master "/usr/local/sbin/keepalived-notify-master.sh"
notify_backup "/usr/local/sbin/keepalived-notify-backup.sh"
notify_fault "/usr/local/sbin/keepalived-notify-fault.sh"
}