Mateusz Matuszkowiak | 7335bd1 | 2018-05-21 10:25:10 +0200 | [diff] [blame] | 1 | # 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. |
| 5 | classes: |
| 6 | - service.keepalived.support |
| 7 | parameters: |
| 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 |