1-st implementation of fencing/stonith
fence example in manifest
FIX: node -- is a puppet keyword and his using are prohibited
remove dependency loop, fencing now is a class, add package move cs_property'stonith-enabled' to fencing class.
fencing start works
move stonith-enabled property to openstack::corosync
cleaning up code for fencing
move stonith-enabled to cluster::fencing
xxx
deploy pass
Add cluster virsh_fence agents to ha manifest

Assumes hardcoded values for names of kvm host user & pass, and virtual machines naming rules

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Refactor cluster::fencing usage

TODO add ruby-libvirt to ks to query libvirt on bootstrap

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Use uuid and kvm_host custom facts for fence_virsh

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
WA for Resource type cluster::fencing doesn't exist

Despite this looks quite strange, w/o this it is possible
to run into Resource type cluster::fencing doesn't exist at node foo.bar

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Use uuid param to configure fence_virsh agents

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Add fencing params, meta and operations

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Add monkey patch for fence_agents for virsh

Patch is applicable for CentOS & fence-agents.x86_64 3.1.5-25.el6_4.2 *ONLY*

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Add pcmk settings for host mappings by uuid

These are vital to ensure virsh fence agent will be
possible to fence/unfence nodes

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Add metadata migration-threshold & failure-timeout for VIPs

See http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html-single/Pacemaker_Explained/

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Tune cluster-recheck-interval and stonith-action cluster settings

Cluster should be rechecked more often than once per 15 min (default), see
http://docs.openstack.org/high-availability-guide/content/_setting_basic_cluster_properties.html.
To enable node level STONITH, use global stonith-action="off" instead of "reboot" (default).

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>