blob: 4ad919970d0dd7b3bd4fbe3f2a235b5c83a29564 [file] [log] [blame]
classes:
- service.keepalived.cluster.single
parameters:
_param:
keepalived_rabbitmq_vrrp_script_content: 'rabbitmqctl cluster_status | grep -q "running_nodes.*$(hostname)"'
keepalived:
cluster:
vrrp_scripts:
rabbitmq_vip:
content: ${_param:keepalived_rabbitmq_vrrp_script_content}
interval: 10
rise: 1
fall: 1
instance:
VIP:
track_script: rabbitmq_vip