fix: keepalived config
This commit is contained in:
parent
a430928049
commit
2a57d15ee5
1 changed files with 3 additions and 6 deletions
|
|
@ -3,12 +3,14 @@ global_defs {
|
|||
router_id {{ keepalived_id }}
|
||||
vrrp_check_unicast_src
|
||||
vrrp_skip_check_adv_addr
|
||||
enable_script_security
|
||||
}
|
||||
|
||||
vrrp_script chk_script {
|
||||
script "/usr/bin/pgrep {{ keepalived_chk_service }}"
|
||||
script "/usr/bin/pgrep {{ keepalived_chk_service }}"
|
||||
interval 1
|
||||
weight 2
|
||||
user root
|
||||
}
|
||||
|
||||
vrrp_instance VI_1 {
|
||||
|
|
@ -22,11 +24,6 @@ vrrp_instance VI_1 {
|
|||
interface {{ keepalived_interface }}
|
||||
unicast_src_ip {{ keepalived_unicast_src_ip }}
|
||||
|
||||
authentication {
|
||||
auth_type PASS
|
||||
auth_pass {{ keepalived_auth_pass }}
|
||||
}
|
||||
|
||||
unicast_peer {
|
||||
{{ keepalived_unicast_peer }}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue