blob: 15e507ba44a1326548ad3c4100c967ee62dfec9f [file] [log] [blame]
Mateusz Matuszkowiak2ce5b182018-05-09 11:02:29 +02001# This instance is needed for the 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_stacklight_control_vip_address: ${_param:keepalived_vip_address}
10 keepalived_stacklight_control_vip_password: ${_param:keepalived_vip_password}
11 keepalived_stacklight_control_vip_interface: ${_param:keepalived_vip_interface}
12 keepalived_stacklight_control_vip_priority: ${_param:keepalived_vip_priority}
13 keepalived_stacklight_control_vip_virtual_router_id: ${_param:keepalived_vip_virtual_router_id}
14 keepalived_stacklight_control_vip_vrrp_check_script_content: "pidof glusterd && pidof haproxy"
15 keepalived:
16 cluster:
17 vrrp_scripts:
18 vrrp_check:
19 content: ${_param:keepalived_stacklight_control_vip_vrrp_check_script_content}
20 interval: 10
21 rise: 1
22 fall: 1
23 enabled: true
24 instance:
25 VIP:
26 address: ${_param:keepalived_stacklight_control_vip_address}
27 password: ${_param:keepalived_stacklight_control_vip_password}
28 interface: ${_param:keepalived_stacklight_control_vip_interface}
29 priority: ${_param:keepalived_stacklight_control_vip_priority}
30 virtual_router_id: ${_param:keepalived_stacklight_control_vip_virtual_router_id}
31 track_script: vrrp_check