Closed tuxmea closed 6 months ago
Example config:
track_file acme {
file "/var/local/vrrp_track_file"
weight 1
}
vrrp_instance lb_slm_test_4 {
interface ens192
state MASTER
virtual_router_id 4
priority 50
advert_int 1
garp_master_delay 5
track_script {
access-lb
}
track_file {
acme weight 1
}
virtual_ipaddress {
127.0.0.1/27 dev eth0
}
}
The parameter track_file
in keepalived::vrrp::instance
is the list track_file
:
track_file {
acme weight 1
}
This can be a random string and references a track_file
block with that name:
track_file acme {
file "/var/local/vrrp_track_file"
weight 1
}
^ is created by keepalived::vrrp::track_file
defined resource.
can you please go into detail why you want to change this? (just for reference, code looks okay)