blob: 4ad919970d0dd7b3bd4fbe3f2a235b5c83a29564 [file] [log] [blame]
Oleksandr Shyshko1050a2f2019-08-13 14:23:51 +03001classes:
2- service.keepalived.cluster.single
3parameters:
4 _param:
Oleksandr Shyshkob382f972019-08-20 15:50:47 +03005 keepalived_rabbitmq_vrrp_script_content: 'rabbitmqctl cluster_status | grep -q "running_nodes.*$(hostname)"'
Oleksandr Shyshko1050a2f2019-08-13 14:23:51 +03006 keepalived:
7 cluster:
8 vrrp_scripts:
Oleksandr Shyshkob382f972019-08-20 15:50:47 +03009 rabbitmq_vip:
10 content: ${_param:keepalived_rabbitmq_vrrp_script_content}
Oleksandr Shyshko1050a2f2019-08-13 14:23:51 +030011 interval: 10
12 rise: 1
13 fall: 1
14 instance:
15 VIP:
Oleksandr Shyshkob382f972019-08-20 15:50:47 +030016 track_script: rabbitmq_vip