summaryrefslogtreecommitdiffstats
path: root/tests/data/metadata/fence_gce.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/metadata/fence_gce.xml')
-rw-r--r--tests/data/metadata/fence_gce.xml213
1 files changed, 213 insertions, 0 deletions
diff --git a/tests/data/metadata/fence_gce.xml b/tests/data/metadata/fence_gce.xml
new file mode 100644
index 0000000..2a89b16
--- /dev/null
+++ b/tests/data/metadata/fence_gce.xml
@@ -0,0 +1,213 @@
+<?xml version="1.0" ?>
+<resource-agent name="fence_gce" shortdesc="Fence agent for GCE (Google Cloud Engine)" >
+<longdesc>fence_gce is an I/O Fencing agent for GCE (Google Cloud Engine). It uses the googleapiclient library to connect to GCE.
+googleapiclient can be configured with Google SDK CLI or by executing 'gcloud auth application-default login'.
+For instructions see: https://cloud.google.com/compute/docs/tutorials/python-guide</longdesc>
+<vendor-url>http://cloud.google.com</vendor-url>
+<parameters>
+ <parameter name="action" unique="0" required="1">
+ <getopt mixed="-o, --action=[action]" />
+ <content type="string" default="reboot" />
+ <shortdesc lang="en">Fencing action</shortdesc>
+ </parameter>
+ <parameter name="method" unique="0" required="0">
+ <getopt mixed="-m, --method=[method]" />
+ <content type="select" default="cycle" >
+ <option value="onoff" />
+ <option value="cycle" />
+ </content>
+ <shortdesc lang="en">Method to fence</shortdesc>
+ </parameter>
+ <parameter name="plug" unique="0" required="1" obsoletes="port">
+ <getopt mixed="-n, --plug=[id]" />
+ <content type="string" />
+ <shortdesc lang="en">Physical plug number on device, UUID or identification of machine</shortdesc>
+ </parameter>
+ <parameter name="port" unique="0" required="1" deprecated="1">
+ <getopt mixed="-n, --plug=[id]" />
+ <content type="string" />
+ <shortdesc lang="en">Physical plug number on device, UUID or identification of machine</shortdesc>
+ </parameter>
+ <parameter name="zone" unique="0" required="0">
+ <getopt mixed="--zone=[name]" />
+ <content type="string" />
+ <shortdesc lang="en">Zone.</shortdesc>
+ </parameter>
+ <parameter name="project" unique="0" required="0">
+ <getopt mixed="--project=[name]" />
+ <content type="string" />
+ <shortdesc lang="en">Project ID.</shortdesc>
+ </parameter>
+ <parameter name="stackdriver-logging" unique="0" required="0" deprecated="1">
+ <getopt mixed="--stackdriver-logging" />
+ <content type="boolean" />
+ <shortdesc lang="en">Stackdriver-logging support.</shortdesc>
+ </parameter>
+ <parameter name="stackdriver_logging" unique="0" required="0" obsoletes="stackdriver-logging">
+ <getopt mixed="--stackdriver-logging" />
+ <content type="boolean" />
+ <shortdesc lang="en">Stackdriver-logging support.</shortdesc>
+ </parameter>
+ <parameter name="baremetalsolution" unique="0" required="0">
+ <getopt mixed="--baremetalsolution" />
+ <content type="boolean" />
+ <shortdesc lang="en">If enabled this is a bare metal offering from google.</shortdesc>
+ </parameter>
+ <parameter name="apitimeout" unique="0" required="0">
+ <getopt mixed="--apitimeout=[seconds]" />
+ <content type="second" default="60" />
+ <shortdesc lang="en">Timeout in seconds to use for API calls, default is 60.</shortdesc>
+ </parameter>
+ <parameter name="retries" unique="0" required="0">
+ <getopt mixed="--retries=[retries]" />
+ <content type="integer" default="3" />
+ <shortdesc lang="en">Number of retries on failure for API calls, default is 3.</shortdesc>
+ </parameter>
+ <parameter name="retrysleep" unique="0" required="0">
+ <getopt mixed="--retrysleep=[seconds]" />
+ <content type="second" default="5" />
+ <shortdesc lang="en">Time to sleep in seconds between API retries, default is 5.</shortdesc>
+ </parameter>
+ <parameter name="serviceaccount" unique="0" required="0">
+ <getopt mixed="--serviceaccount=[filename]" />
+ <content type="string" />
+ <shortdesc lang="en">Service Account to use for authentication to the google cloud APIs.</shortdesc>
+ </parameter>
+ <parameter name="plugzonemap" unique="0" required="0">
+ <getopt mixed="--plugzonemap=[plugzonemap]" />
+ <content type="string" />
+ <shortdesc lang="en">Comma separated zone map when fencing multiple plugs.</shortdesc>
+ </parameter>
+ <parameter name="proxyhost" unique="0" required="0">
+ <getopt mixed="--proxyhost=[proxy_host]" />
+ <content type="string" />
+ <shortdesc lang="en">If a proxy is used for internet access, the proxy host should be specified.</shortdesc>
+ </parameter>
+ <parameter name="proxyport" unique="0" required="0">
+ <getopt mixed="--proxyport=[proxy_port]" />
+ <content type="integer" />
+ <shortdesc lang="en">If a proxy is used for internet access, the proxy port should be specified.</shortdesc>
+ </parameter>
+ <parameter name="earlyexit" unique="0" required="0">
+ <getopt mixed="--earlyexit" />
+ <content type="boolean" />
+ <shortdesc lang="en">If an existing reset operation is detected, the fence agent will return before the operation completes with a 0 return code.</shortdesc>
+ </parameter>
+ <parameter name="warntimeout" unique="0" required="0">
+ <getopt mixed="--warntimeout=[warn_timeout]" />
+ <content type="second" />
+ <shortdesc lang="en">If the operation is not completed within the timeout, the cluster operations are allowed to continue.</shortdesc>
+ </parameter>
+ <parameter name="errortimeout" unique="0" required="0">
+ <getopt mixed="--errortimeout=[error_timeout]" />
+ <content type="second" />
+ <shortdesc lang="en">If the operation is not completed within the timeout, cluster is notified of the operation failure.</shortdesc>
+ </parameter>
+ <parameter name="runonwarn" unique="0" required="0">
+ <getopt mixed="--runonwarn=[run_on_warn]" />
+ <content type="string" />
+ <shortdesc lang="en">If a timeout would occur while running the agent, then the supplied command is run.</shortdesc>
+ </parameter>
+ <parameter name="runonfail" unique="0" required="0">
+ <getopt mixed="--runonfail=[run_on_fail]" />
+ <content type="string" />
+ <shortdesc lang="en">If a failure would occur while running the agent, then the supplied command is run.</shortdesc>
+ </parameter>
+ <parameter name="quiet" unique="0" required="0">
+ <getopt mixed="-q, --quiet" />
+ <content type="boolean" />
+ <shortdesc lang="en">Disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog.</shortdesc>
+ </parameter>
+ <parameter name="verbose" unique="0" required="0">
+ <getopt mixed="-v, --verbose" />
+ <content type="boolean" />
+ <shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc>
+ </parameter>
+ <parameter name="verbose_level" unique="0" required="0">
+ <getopt mixed="--verbose-level" />
+ <content type="integer" />
+ <shortdesc lang="en">Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).</shortdesc>
+ </parameter>
+ <parameter name="debug" unique="0" required="0" deprecated="1">
+ <getopt mixed="-D, --debug-file=[debugfile]" />
+ <content type="string" />
+ <shortdesc lang="en">Write debug information to given file</shortdesc>
+ </parameter>
+ <parameter name="debug_file" unique="0" required="0" obsoletes="debug">
+ <getopt mixed="-D, --debug-file=[debugfile]" />
+ <shortdesc lang="en">Write debug information to given file</shortdesc>
+ </parameter>
+ <parameter name="version" unique="0" required="0">
+ <getopt mixed="-V, --version" />
+ <content type="boolean" />
+ <shortdesc lang="en">Display version information and exit</shortdesc>
+ </parameter>
+ <parameter name="help" unique="0" required="0">
+ <getopt mixed="-h, --help" />
+ <content type="boolean" />
+ <shortdesc lang="en">Display help and exit</shortdesc>
+ </parameter>
+ <parameter name="plug_separator" unique="0" required="0">
+ <getopt mixed="--plug-separator=[char]" />
+ <content type="string" default="," />
+ <shortdesc lang="en">Separator for plug parameter when specifying more than 1 plug</shortdesc>
+ </parameter>
+ <parameter name="separator" unique="0" required="0">
+ <getopt mixed="-C, --separator=[char]" />
+ <content type="string" default="," />
+ <shortdesc lang="en">Separator for CSV created by 'list' operation</shortdesc>
+ </parameter>
+ <parameter name="delay" unique="0" required="0">
+ <getopt mixed="--delay=[seconds]" />
+ <content type="second" default="0" />
+ <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
+ </parameter>
+ <parameter name="disable_timeout" unique="0" required="0">
+ <getopt mixed="--disable-timeout=[true/false]" />
+ <content type="string" />
+ <shortdesc lang="en">Disable timeout (true/false) (default: true when run from Pacemaker 2.0+)</shortdesc>
+ </parameter>
+ <parameter name="login_timeout" unique="0" required="0">
+ <getopt mixed="--login-timeout=[seconds]" />
+ <content type="second" default="5" />
+ <shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
+ </parameter>
+ <parameter name="power_timeout" unique="0" required="0">
+ <getopt mixed="--power-timeout=[seconds]" />
+ <content type="second" default="60" />
+ <shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
+ </parameter>
+ <parameter name="power_wait" unique="0" required="0">
+ <getopt mixed="--power-wait=[seconds]" />
+ <content type="second" default="0" />
+ <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
+ </parameter>
+ <parameter name="shell_timeout" unique="0" required="0">
+ <getopt mixed="--shell-timeout=[seconds]" />
+ <content type="second" default="3" />
+ <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
+ </parameter>
+ <parameter name="stonith_status_sleep" unique="0" required="0">
+ <getopt mixed="--stonith-status-sleep=[seconds]" />
+ <content type="second" default="1" />
+ <shortdesc lang="en">Sleep X seconds between status calls during a STONITH action</shortdesc>
+ </parameter>
+ <parameter name="retry_on" unique="0" required="0">
+ <getopt mixed="--retry-on=[attempts]" />
+ <content type="integer" default="1" />
+ <shortdesc lang="en">Count of attempts to retry power on</shortdesc>
+ </parameter>
+</parameters>
+<actions>
+ <action name="on" automatic="0"/>
+ <action name="off" />
+ <action name="reboot" />
+ <action name="status" />
+ <action name="list" />
+ <action name="list-status" />
+ <action name="monitor" />
+ <action name="metadata" />
+ <action name="manpage" />
+ <action name="validate-all" />
+</actions>
+</resource-agent>