feat: initial commit
This commit is contained in:
parent
3242428dbb
commit
91db109b12
17 changed files with 256 additions and 93 deletions
41
templates/keepalived.conf.j2
Normal file
41
templates/keepalived.conf.j2
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
global_defs {
|
||||
vrrp_version 3
|
||||
router_id {{ keepalived_id }}
|
||||
vrrp_check_unicast_src
|
||||
vrrp_skip_check_adv_addr
|
||||
}
|
||||
|
||||
vrrp_script chk_{{ keepalived_chk_service }} {
|
||||
script "/usr/bin/pgrep {{ keepalived_chk_service }}"
|
||||
interval 1
|
||||
weight 2
|
||||
}
|
||||
|
||||
vrrp_instance VI_1 {
|
||||
accept
|
||||
advert_int 1
|
||||
garp_master_refresh 5
|
||||
garp_master_refresh_repeat 1
|
||||
state {{ keepalived_state }}
|
||||
virtual_router_id {{ keepalived_vr_id }}
|
||||
priority {{ keepalived_priority }}
|
||||
interface {{ keepalived_interface }}
|
||||
unicast_src_ip {{ keepalived_unicast_src_ip }}
|
||||
|
||||
authentication {
|
||||
auth_type PASS
|
||||
auth_pass {{ keepalived_auth_pass }}
|
||||
}
|
||||
|
||||
unicast_peer {
|
||||
{{ keepalived_unicast_peer }}
|
||||
}
|
||||
|
||||
virtual_ipaddress {
|
||||
{{ keepalived_virtual_ipaddress }} dev {{ keepalived_virtual_ipaddress_interface }}
|
||||
}
|
||||
|
||||
track_script {
|
||||
chk_haproxy
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue