Oleksandr Shyshko | 1050a2f | 2019-08-13 14:23:51 +0300 | [diff] [blame] | 1 | classes: |
| 2 | - service.keepalived.cluster.single |
| 3 | parameters: |
| 4 | _param: |
Oleksandr Shyshko | b382f97 | 2019-08-20 15:50:47 +0300 | [diff] [blame^] | 5 | keepalived_rabbitmq_vrrp_script_content: 'rabbitmqctl cluster_status | grep -q "running_nodes.*$(hostname)"' |
Oleksandr Shyshko | 1050a2f | 2019-08-13 14:23:51 +0300 | [diff] [blame] | 6 | keepalived: |
| 7 | cluster: |
| 8 | vrrp_scripts: |
Oleksandr Shyshko | b382f97 | 2019-08-20 15:50:47 +0300 | [diff] [blame^] | 9 | rabbitmq_vip: |
| 10 | content: ${_param:keepalived_rabbitmq_vrrp_script_content} |
Oleksandr Shyshko | 1050a2f | 2019-08-13 14:23:51 +0300 | [diff] [blame] | 11 | interval: 10 |
| 12 | rise: 1 |
| 13 | fall: 1 |
| 14 | instance: |
| 15 | VIP: |
Oleksandr Shyshko | b382f97 | 2019-08-20 15:50:47 +0300 | [diff] [blame^] | 16 | track_script: rabbitmq_vip |