Fencing agent that uses SSH, should only be used for testing.
The branch alternate_version contains a version of the agent that works using the nodename parameter instead (read the readme on that branch).
Place in /usr/sbin with execute permissions
Create stonith resources in Pacemaker
Can see usage with either fence_ssh --help or by running pcs stonith describe fence_ssh
Example usage with PCS:
Ensure that pcmk_host_list is defined so that Pacemaker knows which resource can fence which node
pcs stonith create stonith-one fence_ssh user=centos hostname=host1 password=Pa55w0rd sudo=true pcmk_host_list="host1" pcs stonith create stonith-two fence_ssh user=centos hostname=host2 password=Pa55w0rd sudo=true pcmk_host_list="host2" pcs constraint location add stonith-one-host-one stonith-one host1 INFINITY pcs constraint location add stonith-two-host-two stonith-two host2 INFINITY