Oleksandr Shyshko | 1a02017 | 2019-08-13 14:23:51 +0300 | [diff] [blame] | 1 | classes: |
| 2 | - service.keepalived.cluster.single |
| 3 | parameters: |
| 4 | _param: |
| 5 | keepalived_rabbitemq_vrrp_script_content: 'rabbitmqctl cluster_status --formatter=erlang | grep -q "running_nodes.*$(hostname)"' |
| 6 | keepalived: |
| 7 | cluster: |
| 8 | vrrp_scripts: |
| 9 | rabbitemq_vip: |
| 10 | content: ${_param:keepalived_rabbitemq_vrrp_script_content} |
Denis Meltsaykin | 4b304c5 | 2021-08-19 15:27:59 +0200 | [diff] [blame] | 11 | interval: 30 |
Oleksandr Shyshko | 1a02017 | 2019-08-13 14:23:51 +0300 | [diff] [blame] | 12 | rise: 1 |
Denis Meltsaykin | 4b304c5 | 2021-08-19 15:27:59 +0200 | [diff] [blame] | 13 | fall: 2 |
Oleksandr Shyshko | 1a02017 | 2019-08-13 14:23:51 +0300 | [diff] [blame] | 14 | instance: |
| 15 | VIP: |
| 16 | track_script: rabbitemq_vip |