]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/cephadm/templates/services/ingress/keepalived.conf.j2
import ceph 16.2.6
[ceph.git] / ceph / src / pybind / mgr / cephadm / templates / services / ingress / keepalived.conf.j2
CommitLineData
f67539c2
TL
1# {{ cephadm_managed }}
2vrrp_script check_backend {
3 script "{{ script }}"
4 weight -20
5 interval 2
6 rise 2
7 fall 2
8}
9
10vrrp_instance VI_0 {
11 state {{ state }}
12 priority 100
13 interface {{ interface }}
14 virtual_router_id 51
15 advert_int 1
16 authentication {
17 auth_type PASS
18 auth_pass {{ password }}
19 }
20 unicast_src_ip {{ host_ip }}
21 unicast_peer {
522d829b 22 {% for ip in other_ips %}
f67539c2
TL
23 {{ ip }}
24 {% endfor %}
25 }
26 virtual_ipaddress {
27 {{ spec.virtual_ip }} dev {{ interface }}
28 }
29 track_script {
30 check_backend
31 }
32}