Skip to content

Instantly share code, notes, and snippets.

@jmara
Created September 3, 2012 11:52
Show Gist options
  • Save jmara/3608788 to your computer and use it in GitHub Desktop.
Save jmara/3608788 to your computer and use it in GitHub Desktop.
VIP for a node with a working service
Control a VIP based on a location constrain but not the actual resource ...
node $id="55f27a97-c277-4287-997e-79da9ebfe879" node-1
node $id="bd7d0d7a-4e5a-43f7-9065-24ee3da8617d" node-2
primitive apache lsb:apache2 \
meta is-managed="false" \
op monitor interval="60s"
primitive vip ocf:heartbeat:IPaddr \
params ip="192.168.3.100" nic="eth0" cidr_netmask="24"
clone apache_clones apache \
meta clone-max="2" clone-node-max="1"
location vip_to_node vip 100: node-1
colocation vip_on_apache inf: vip apache_clones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment