ansible-collections / community.pacemaker

Collection focusing on modules to deploy and configure Pacemaker clusters.
GNU General Public License v3.0
1 stars 0 forks source link

pacemaker_fence module #8

Open rhysmeister opened 1 year ago

rhysmeister commented 1 year ago
SUMMARY

Add pacemaker_fence module

ISSUE TYPE
rhysmeister commented 12 months ago

The possibilities for VIrtualBox seem to be...

References:

https://linbit.com/blog/using-fencing-in-pacemaker-clusters-on-virtualbox-hypervisors/ https://linux.die.net/man/8/fence_virt

rhysmeister commented 12 months ago
community.pacemaker.pacemaker_fence:
  fence_name: "{{ inventory_hostname }}_fence"  # default?
  fence_agent: "fence_vbox"  # potentially support other agents in the future?
  fence_config:
    ip: "192.168.1.101"
    login: "rhys"
    plug: "xxxx-xxxx-xxxx-xxxx"
    pcmk_host_list: "pacemaker-1"
    identity_file: "/path/to/id_rsa"

Config params for fence_vbox...