blob: 922afc76ac3f4aeb20225674a43b09af682828c1 [file] [log] [blame]
classes:
- service.keepalived.cluster.single
parameters:
_param:
keepalived_rabbitemq_vrrp_script_content: 'rabbitmqctl cluster_status --formatter=erlang | grep -q "running_nodes.*$(hostname)"'
keepalived:
cluster:
vrrp_scripts:
rabbitemq_vip:
content: ${_param:keepalived_rabbitemq_vrrp_script_content}
interval: 10
rise: 1
fall: 1
instance:
VIP:
track_script: rabbitemq_vip