blob: 922afc76ac3f4aeb20225674a43b09af682828c1 [file] [log] [blame]
Oleksandr Shyshko1a020172019-08-13 14:23:51 +03001classes:
2- service.keepalived.cluster.single
3parameters:
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}
11 interval: 10
12 rise: 1
13 fall: 1
14 instance:
15 VIP:
16 track_script: rabbitemq_vip