Guest User

Untitled

a guest
Feb 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. node cc-ipsec1 \
  2. attributes standby="off"
  3. node cc-ipsec2 \
  4. attributes standby="off"
  5. primitive Apache lsb:apache2 \
  6. op monitor interval="60s"
  7. primitive Asterisk lsb:asterisk \
  8. op monitor interval="60s"
  9. primitive DRBD ocf:heartbeat:drbd \
  10. params drbd_resource="res0" ignore_deprecation="true" \
  11. op monitor interval="60s"
  12. primitive FS ocf:heartbeat:Filesystem \
  13. params device="/dev/drbd0" directory="/hadisk" fstype="ext3"
  14. primitive FloatIP ocf:heartbeat:IPaddr2 \
  15. params ip="172.17.0.222" cidr_netmask="32" \
  16. op monitor interval="30s"
  17. primitive IPSec lsb:ipsec \
  18. op monitor interval="60s"
  19. primitive MySQL lsb:mysql \
  20. op monitor interval="60s"
  21. primitive ipmi-fencing1 stonith:external/ipmi \
  22. params hostname="cc-ipsec1" ipaddr="172.17.0.150" userid="Administrator" passwd="123456789" interface="lanplus" \
  23. op monitor interval="60s"
  24. primitive ipmi-fencing2 stonith:external/ipmi \
  25. params hostname="cc-ipsec2" ipaddr="172.17.0.130" userid="Administrator" passwd="123456789" interface="lanplus" \
  26. op monitor interval="60s"
  27. group MainGroup FloatIP FS MySQL Apache Asterisk IPSec \
  28. meta resource-stickiness="101"
  29. ms DRBDClone DRBD \
  30. meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
  31. location cli-prefer-MainGroup MainGroup \
  32. rule $id="cli-prefer-rule-MainGroup" inf: #uname eq cc-ipsec1
  33. location prefer-cc-ipsec1 MainGroup 100: cc-ipsec1
  34. location stonith-cc-ipsec1 ipmi-fencing1 -inf: cc-ipsec1
  35. location stonith-cc-ipsec2 ipmi-fencing2 -inf: cc-ipsec2
  36. colocation resources-on-drbd inf: MainGroup DRBDClone:Master
  37. order resources-after-drbd inf: DRBDClone:promote MainGroup:start
  38. property $id="cib-bootstrap-options" \
  39. dc-version="1.0.9-da7075976b5ff0bee71074385f8fd02f296ec8a3" \
  40. cluster-infrastructure="openais" \
  41. expected-quorum-votes="2" \
  42. stonith-enabled="true" \
  43. no-quorum-policy="ignore" \
  44. stop-all-resources="false" \
  45. default-resource-stickiness="1"
  46. rsc_defaults $id="rsc-options" \
  47. resource-stickiness="0"
Add Comment
Please, Sign In to add comment