]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/cephadm/templates/services/ingress/keepalived.conf.j2
import ceph quincy 17.2.4
[ceph.git] / ceph / src / pybind / mgr / cephadm / templates / services / ingress / keepalived.conf.j2
1 # {{ cephadm_managed }}
2 vrrp_script check_backend {
3 script "{{ script }}"
4 weight -20
5 interval 2
6 rise 2
7 fall 2
8 }
9
10 {% for x in range(virtual_ips|length) %}
11 vrrp_instance VI_{{ x }} {
12 state {{ states[x] }}
13 priority {{ priorities[x] }}
14 interface {{ interface }}
15 virtual_router_id {{ 50 + x }}
16 advert_int 1
17 authentication {
18 auth_type PASS
19 auth_pass {{ password }}
20 }
21 unicast_src_ip {{ host_ip }}
22 unicast_peer {
23 {% for ip in other_ips %}
24 {{ ip }}
25 {% endfor %}
26 }
27 virtual_ipaddress {
28 {{ virtual_ips[x] }} dev {{ interface }}
29 }
30 track_script {
31 check_backend
32 }
33 }
34 {% endfor %}