blob: e088dd6fe138c9e545e939063467c2d8b0ef6977 [file] [log] [blame]
Mateusz Matuszkowiak7335bd12018-05-21 10:25:10 +02001# This instance is needed for the example case, where on control node the GlusterFS is deployed with keepalived and
2# a `remote_agent` from `Stacklight` sends its queries to the control's VIP to gather the GlusterFS data.
3# In case of `glusterd` process failure, the VIP should be moved to another node, to prevent `remote_agent` from failing.
4# In addition, check for haproxy process too, as on its failure VIP should be also moved to another node.
5classes:
6- service.keepalived.support
7parameters:
8 _param:
9 keepalived_vip_vrrp_check_script_content: "pidof glusterd && pidof haproxy"
10 keepalived:
11 cluster:
12 vrrp_scripts:
13 vrrp_check:
14 content: ${_param:keepalived_vip_vrrp_check_script_content}
15 interval: 10
16 rise: 1
17 fall: 1
18 enabled: true
19 instance:
20 VIP:
21 track_script: vrrp_check