Added code
This commit is contained in:
14
ansible/roles/k8s-api-ha/templates/keepalived.conf.j2
Normal file
14
ansible/roles/k8s-api-ha/templates/keepalived.conf.j2
Normal file
@ -0,0 +1,14 @@
|
||||
vrrp_instance VI_1 {
|
||||
state {{ hostvars[inventory_hostname].state }}
|
||||
interface {{ ansible_default_ipv4.interface }}
|
||||
virtual_router_id 51
|
||||
priority {{ hostvars[inventory_hostname].priority }}
|
||||
advert_int 1
|
||||
authentication {
|
||||
auth_type PASS
|
||||
auth_pass {{ keepalived_auth_pass }}
|
||||
}
|
||||
virtual_ipaddress {
|
||||
{{ keepalived_vip }}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user