node $id="1" ifds1
node $id="2" ifds2
primitive IFDS-MIP1 ocf:heartbeat:IPaddr2 \
	params ip="10.40.0.70" cidr_netmask="24" iflabel="mas1" \
	op monitor interval="10s"
primitive IFDS-MIP2 ocf:heartbeat:IPaddr2 \
	params ip="10.40.0.71" cidr_netmask="24" iflabel="mas2" \
	op monitor interval="10s"
primitive IFDS-Stateful ocf:heartbeat:Stateful \
	op start interval="0s" timeout="30s" on-fail="restart" \
	op monitor interval="10s" role="Master" timeout="30s" on-fail="restart" \
	op monitor interval="11s" timeout="30s" on-fail="restart" \
	op promote interval="0s" timeout="30s" on-fail="restart" \
	op demote interval="0s" timeout="30s" on-fail="stop" \
	op stop interval="0s" timeout="30s" on-fail="block"
primitive IFDS-VIP ocf:heartbeat:IPaddr2 \
	params ip="10.40.0.72" cidr_netmask="24" iflabel="slav" \
	meta resource-stickiness="1" \
	op monitor interval="10s" timeout="60s" on-fail="restart"
primitive IFDS-pingCheck ocf:pacemaker:ping \
	params host_list="10.40.0.99" name="default_ping_set" multiplier="100" \
	op start interval="0s" timeout="60s" on-fail="restart" \
	op monitor interval="2s" timeout="60s" on-fail="restart" \
	op stop interval="0s" timeout="60s" on-fail="ignore"
group master-group IFDS-MIP1 IFDS-MIP2
ms msStateful IFDS-Stateful \
	meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
clone clnPingd IFDS-pingCheck
location rsc_location-1 msStateful \
	rule $id="rsc_location-1-rule" -inf: not_defined default_ping_set or default_ping_set lt 100
colocation rsc_colocation-1 inf: msStateful clnPingd
colocation rsc_colocation-2 inf: master-group msStateful:Master
colocation rsc_colocation-3 -inf: IFDS-VIP msStateful:Master
order rsc_order-1 0: clnPingd msStateful symmetrical=false
order rsc_order-2 inf: msStateful:promote master-group:start symmetrical=false
order rsc_order-3 0: msStateful:demote master-group:stop symmetrical=false
property $id="cib-bootstrap-options" \
	dc-version="1.1.10-368c726" \
	cluster-infrastructure="corosync" \
	no-quorum-policy="ignore" \
	stonith-enabled="false" \
	crmd-transition-delay="0s"
rsc_defaults $id="rsc-options" \
	resource-stickiness="INFINITY" \
	migration-threshold="1"
