-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFloatingVip_example.cib
30 lines (30 loc) · 1.19 KB
/
FloatingVip_example.cib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
node lb1 \
attributes standby="off"
node lb2
primitive floating ocf:openstack:FloatingVip \
op monitor interval="5" on-fail="restart" \
meta target-role="Started"
primitive p_ping_gw ocf:pacemaker:ping \
params dampen="5s" attempts="2" host_list="10.43.14.1" multiplier="1000" timeout="2" \
op monitor interval="5s" timeout="5s"
primitive res_IPaddr2 ocf:heartbeat:IPaddr2 \
params ip="10.43.14.250" nic="eth0" cidr_netmask="24" \
op start interval="0" timeout="20" \
op stop interval="0" timeout="20" \
op monitor interval="10" timeout="20" start-delay="0"
clone cl_ping_gw p_ping_gw \
meta interleave="true" clone-node-max="1" clone-max="2" target-role="Started"
group g_vipip floating res_IPaddr2 \
meta target-role="Started"
location l_ping_gw_lb1 cl_ping_gw 0: lb1
location l_ping_gw_lb2 cl_ping_gw 0: lb2
location loc_vip g_vipip \
rule $id="loc_vip-rule" -inf: not_defined pingd or pingd number:lte 0
property $id="cib-bootstrap-options" \
dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
cluster-infrastructure="openais" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
last-lrm-refresh="1418856131" \
expected-quorum-votes="2"\
start-failure-is-fatal="false"