summaryrefslogtreecommitdiffstats
path: root/scripts/vmware/main.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:48:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:48:59 +0000
commitd835b2cae8abc71958b69362162e6a70c3d7ef63 (patch)
tree81052e3d2ce3e1bcda085f73d925e9d6257dec15 /scripts/vmware/main.yml
parentInitial commit. (diff)
downloadcrmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.tar.xz
crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.zip
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--scripts/vmware/main.yml60
1 files changed, 60 insertions, 0 deletions
diff --git a/scripts/vmware/main.yml b/scripts/vmware/main.yml
new file mode 100644
index 0000000..0fd68d4
--- /dev/null
+++ b/scripts/vmware/main.yml
@@ -0,0 +1,60 @@
+# Copyright (C) 2016 Kristoffer Gronlund
+#
+# License: GNU General Public License (GPL)
+version: 2.2
+category: Stonith
+shortdesc: Fencing using vCenter / ESX Server
+longdesc: |
+ Note that SBD is the recommended fencing mechanism for VMware
+ hosts! Please refer to the documentation for more details on
+ recommended fencing configurations.
+
+ Fencing for VMware virtualized hosts using ESX Server or vCenter.
+
+ This wizard configures a fencing resource for a single node.
+ It is necessary to run the wizard for each node to fence.
+
+ Prerequisites
+
+ 1. Install the vSphere Web Services SDK on all nodes.
+
+ 2. Generate vCenter credentials using credstore_admin.pl
+
+ 3. Copy credentials to the same location on all nodes.
+
+parameters:
+ - name: id
+ type: resource
+ shortdesc: Base Resource ID
+ value: vcenter-fencing
+ required: true
+ - name: node_name
+ type: string
+ shortdesc: Name of node to fence
+ required: true
+ - name: machine_name
+ type: string
+ shortdesc: Name of machine in vCenter inventory
+ required: true
+ - name: server
+ type: string
+ shortdesc: VCenter server URL
+ required: true
+ example: vcenter.example.com
+ - name: credstore
+ type: string
+ shortdesc: Credentials file name
+ required: true
+
+actions:
+ - cib: |
+ primitive {{id}}-{{node_name}} stonith:external/vcenter
+ VI_SERVER="{{server}}"
+ VI_CREDSTORE="{{credstore}}"
+ HOSTLIST="{{node_name}}={{machine_name}}"
+ RESETPOWERON="0"
+ pcmk_host_check="static-list"
+ pcmk_host_list="{{node_name}}"
+ op monitor interval="60s"
+ location loc-{{id}}-{{node_name}} {{id}}-{{node_name}} -inf: {{node_name}}
+ property stonith-enabled=true