|
|
42c953 |
From a09307e2723f4536c71fe9b3b650b1d6ab8e9b79 Mon Sep 17 00:00:00 2001
|
|
|
42c953 |
From: Marek 'marx' Grac <mgrac@redhat.com>
|
|
|
42c953 |
Date: Wed, 25 Mar 2015 17:53:14 +0100
|
|
|
42c953 |
Subject: [PATCH 3/5] [tests] Add XML metadata for fence_ilo*_ssh
|
|
|
42c953 |
|
|
|
42c953 |
---
|
|
|
42c953 |
tests/data/metadata/fence_ilo3_ssh.xml | 136 +++++++++++++++++++++++++++++++++
|
|
|
42c953 |
tests/data/metadata/fence_ilo4_ssh.xml | 136 +++++++++++++++++++++++++++++++++
|
|
|
42c953 |
tests/data/metadata/fence_ilo_ssh.xml | 136 +++++++++++++++++++++++++++++++++
|
|
|
42c953 |
3 files changed, 408 insertions(+)
|
|
|
42c953 |
create mode 100644 tests/data/metadata/fence_ilo3_ssh.xml
|
|
|
42c953 |
create mode 100644 tests/data/metadata/fence_ilo4_ssh.xml
|
|
|
42c953 |
create mode 100644 tests/data/metadata/fence_ilo_ssh.xml
|
|
|
42c953 |
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_ilo3_ssh.xml b/tests/data/metadata/fence_ilo3_ssh.xml
|
|
|
42c953 |
new file mode 100644
|
|
|
42c953 |
index 0000000..b3531b2
|
|
|
42c953 |
--- /dev/null
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_ilo3_ssh.xml
|
|
|
42c953 |
@@ -0,0 +1,136 @@
|
|
|
42c953 |
+
|
|
|
42c953 |
+<resource-agent name="fence_ilo3_ssh" shortdesc="Fence agent for HP iLO over SSH" >
|
|
|
42c953 |
+<symlink name="fence_ilo3_ssh" shortdesc="Fence agent for HP iLO3 over SSH"/>
|
|
|
42c953 |
+<symlink name="fence_ilo4_ssh" shortdesc="Fence agent for HP iLO4 over SSH"/>
|
|
|
42c953 |
+<longdesc>fence_ilo_ssh is a fence agent that connects to iLO device. It logs into device via ssh and reboot a specified outlet. </longdesc>
|
|
|
42c953 |
+<vendor-url>http://www.hp.com</vendor-url>
|
|
|
42c953 |
+<parameters>
|
|
|
42c953 |
+ <parameter name="ipport" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-u, --ipport=[port]" />
|
|
|
42c953 |
+ <content type="string" default="23" />
|
|
|
42c953 |
+ <shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="ipaddr" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-a, --ip=[ip]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">IP Address or Hostname</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="secure" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-x, --ssh" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">SSH connection</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="cmd_prompt" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-c, --command-prompt=[prompt]" />
|
|
|
42c953 |
+ <content type="string" default="['MP>', 'hpiLO->']" />
|
|
|
42c953 |
+ <shortdesc lang="en">Force Python regex for command prompt</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="inet6_only" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-6, --inet6-only" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Forces agent to use IPv6 addresses only</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="identity_file" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-k, --identity-file=[filename]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Identity file for ssh</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="inet4_only" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-4, --inet4-only" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Forces agent to use IPv4 addresses only</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="method" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-m, --method=[method]" />
|
|
|
42c953 |
+ <content type="select" default="onoff" >
|
|
|
42c953 |
+ <option value="onoff" />
|
|
|
42c953 |
+ <option value="cycle" />
|
|
|
42c953 |
+ </content>
|
|
|
42c953 |
+ <shortdesc lang="en">Method to fence (onoff|cycle)</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="passwd_script" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-S, --password-script=[script]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Script to retrieve password</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="passwd" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-p, --password=[password]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Login password or passphrase</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="ssh_options" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--ssh-options=[options]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">SSH options to use</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="action" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-o, --action=[action]" />
|
|
|
42c953 |
+ <content type="string" default="reboot" />
|
|
|
42c953 |
+ <shortdesc lang="en">Fencing Action</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="login" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-l, --username=[name]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Login Name</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="verbose" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-v, --verbose" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Verbose mode</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="debug" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-D, --debug-file=[debugfile]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Write debug information to given file</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="version" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-V, --version" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Display version information and exit</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="help" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-h, --help" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Display help and exit</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="power_wait" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--power-wait=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="5" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="login_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--login-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="5" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="power_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--power-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="20" />
|
|
|
42c953 |
+ <shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="delay" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--delay=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="0" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="shell_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--shell-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="3" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="retry_on" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--retry-on=[attempts]" />
|
|
|
42c953 |
+ <content type="string" default="1" />
|
|
|
42c953 |
+ <shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+</parameters>
|
|
|
42c953 |
+<actions>
|
|
|
42c953 |
+ <action name="on" automatic="0"/>
|
|
|
42c953 |
+ <action name="off" />
|
|
|
42c953 |
+ <action name="reboot" />
|
|
|
42c953 |
+ <action name="status" />
|
|
|
42c953 |
+ <action name="list" />
|
|
|
42c953 |
+ <action name="monitor" />
|
|
|
42c953 |
+ <action name="metadata" />
|
|
|
42c953 |
+</actions>
|
|
|
42c953 |
+</resource-agent>
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_ilo4_ssh.xml b/tests/data/metadata/fence_ilo4_ssh.xml
|
|
|
42c953 |
new file mode 100644
|
|
|
42c953 |
index 0000000..2266ee1
|
|
|
42c953 |
--- /dev/null
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_ilo4_ssh.xml
|
|
|
42c953 |
@@ -0,0 +1,136 @@
|
|
|
42c953 |
+
|
|
|
42c953 |
+<resource-agent name="fence_ilo4_ssh" shortdesc="Fence agent for HP iLO over SSH" >
|
|
|
42c953 |
+<symlink name="fence_ilo3_ssh" shortdesc="Fence agent for HP iLO3 over SSH"/>
|
|
|
42c953 |
+<symlink name="fence_ilo4_ssh" shortdesc="Fence agent for HP iLO4 over SSH"/>
|
|
|
42c953 |
+<longdesc>fence_ilo_ssh is a fence agent that connects to iLO device. It logs into device via ssh and reboot a specified outlet. </longdesc>
|
|
|
42c953 |
+<vendor-url>http://www.hp.com</vendor-url>
|
|
|
42c953 |
+<parameters>
|
|
|
42c953 |
+ <parameter name="ipport" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-u, --ipport=[port]" />
|
|
|
42c953 |
+ <content type="string" default="23" />
|
|
|
42c953 |
+ <shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="ipaddr" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-a, --ip=[ip]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">IP Address or Hostname</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="secure" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-x, --ssh" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">SSH connection</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="cmd_prompt" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-c, --command-prompt=[prompt]" />
|
|
|
42c953 |
+ <content type="string" default="['MP>', 'hpiLO->']" />
|
|
|
42c953 |
+ <shortdesc lang="en">Force Python regex for command prompt</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="inet6_only" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-6, --inet6-only" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Forces agent to use IPv6 addresses only</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="identity_file" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-k, --identity-file=[filename]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Identity file for ssh</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="inet4_only" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-4, --inet4-only" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Forces agent to use IPv4 addresses only</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="method" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-m, --method=[method]" />
|
|
|
42c953 |
+ <content type="select" default="onoff" >
|
|
|
42c953 |
+ <option value="onoff" />
|
|
|
42c953 |
+ <option value="cycle" />
|
|
|
42c953 |
+ </content>
|
|
|
42c953 |
+ <shortdesc lang="en">Method to fence (onoff|cycle)</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="passwd_script" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-S, --password-script=[script]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Script to retrieve password</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="passwd" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-p, --password=[password]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Login password or passphrase</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="ssh_options" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--ssh-options=[options]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">SSH options to use</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="action" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-o, --action=[action]" />
|
|
|
42c953 |
+ <content type="string" default="reboot" />
|
|
|
42c953 |
+ <shortdesc lang="en">Fencing Action</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="login" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-l, --username=[name]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Login Name</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="verbose" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-v, --verbose" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Verbose mode</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="debug" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-D, --debug-file=[debugfile]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Write debug information to given file</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="version" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-V, --version" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Display version information and exit</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="help" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-h, --help" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Display help and exit</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="power_wait" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--power-wait=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="5" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="login_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--login-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="5" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="power_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--power-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="20" />
|
|
|
42c953 |
+ <shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="delay" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--delay=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="0" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="shell_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--shell-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="3" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="retry_on" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--retry-on=[attempts]" />
|
|
|
42c953 |
+ <content type="string" default="1" />
|
|
|
42c953 |
+ <shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+</parameters>
|
|
|
42c953 |
+<actions>
|
|
|
42c953 |
+ <action name="on" automatic="0"/>
|
|
|
42c953 |
+ <action name="off" />
|
|
|
42c953 |
+ <action name="reboot" />
|
|
|
42c953 |
+ <action name="status" />
|
|
|
42c953 |
+ <action name="list" />
|
|
|
42c953 |
+ <action name="monitor" />
|
|
|
42c953 |
+ <action name="metadata" />
|
|
|
42c953 |
+</actions>
|
|
|
42c953 |
+</resource-agent>
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_ilo_ssh.xml b/tests/data/metadata/fence_ilo_ssh.xml
|
|
|
42c953 |
new file mode 100644
|
|
|
42c953 |
index 0000000..a9bd1d3
|
|
|
42c953 |
--- /dev/null
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_ilo_ssh.xml
|
|
|
42c953 |
@@ -0,0 +1,136 @@
|
|
|
42c953 |
+
|
|
|
42c953 |
+<resource-agent name="fence_ilo_ssh" shortdesc="Fence agent for HP iLO over SSH" >
|
|
|
42c953 |
+<symlink name="fence_ilo3_ssh" shortdesc="Fence agent for HP iLO3 over SSH"/>
|
|
|
42c953 |
+<symlink name="fence_ilo4_ssh" shortdesc="Fence agent for HP iLO4 over SSH"/>
|
|
|
42c953 |
+<longdesc>fence_ilo_ssh is a fence agent that connects to iLO device. It logs into device via ssh and reboot a specified outlet. </longdesc>
|
|
|
42c953 |
+<vendor-url>http://www.hp.com</vendor-url>
|
|
|
42c953 |
+<parameters>
|
|
|
42c953 |
+ <parameter name="ipport" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-u, --ipport=[port]" />
|
|
|
42c953 |
+ <content type="string" default="23" />
|
|
|
42c953 |
+ <shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="ipaddr" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-a, --ip=[ip]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">IP Address or Hostname</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="secure" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-x, --ssh" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">SSH connection</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="cmd_prompt" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-c, --command-prompt=[prompt]" />
|
|
|
42c953 |
+ <content type="string" default="['MP>', 'hpiLO->']" />
|
|
|
42c953 |
+ <shortdesc lang="en">Force Python regex for command prompt</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="inet6_only" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-6, --inet6-only" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Forces agent to use IPv6 addresses only</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="identity_file" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-k, --identity-file=[filename]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Identity file for ssh</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="inet4_only" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-4, --inet4-only" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Forces agent to use IPv4 addresses only</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="method" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-m, --method=[method]" />
|
|
|
42c953 |
+ <content type="select" default="onoff" >
|
|
|
42c953 |
+ <option value="onoff" />
|
|
|
42c953 |
+ <option value="cycle" />
|
|
|
42c953 |
+ </content>
|
|
|
42c953 |
+ <shortdesc lang="en">Method to fence (onoff|cycle)</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="passwd_script" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-S, --password-script=[script]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Script to retrieve password</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="passwd" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-p, --password=[password]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Login password or passphrase</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="ssh_options" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--ssh-options=[options]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">SSH options to use</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="action" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-o, --action=[action]" />
|
|
|
42c953 |
+ <content type="string" default="reboot" />
|
|
|
42c953 |
+ <shortdesc lang="en">Fencing Action</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="login" unique="0" required="1">
|
|
|
42c953 |
+ <getopt mixed="-l, --username=[name]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Login Name</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="verbose" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-v, --verbose" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Verbose mode</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="debug" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-D, --debug-file=[debugfile]" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
+ <shortdesc lang="en">Write debug information to given file</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="version" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-V, --version" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Display version information and exit</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="help" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="-h, --help" />
|
|
|
42c953 |
+ <content type="boolean" />
|
|
|
42c953 |
+ <shortdesc lang="en">Display help and exit</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="power_wait" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--power-wait=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="5" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="login_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--login-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="5" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="power_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--power-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="20" />
|
|
|
42c953 |
+ <shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="delay" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--delay=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="0" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="shell_timeout" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--shell-timeout=[seconds]" />
|
|
|
42c953 |
+ <content type="string" default="3" />
|
|
|
42c953 |
+ <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+ <parameter name="retry_on" unique="0" required="0">
|
|
|
42c953 |
+ <getopt mixed="--retry-on=[attempts]" />
|
|
|
42c953 |
+ <content type="string" default="1" />
|
|
|
42c953 |
+ <shortdesc lang="en">Count of attempts to retry power on</shortdesc>
|
|
|
42c953 |
+ </parameter>
|
|
|
42c953 |
+</parameters>
|
|
|
42c953 |
+<actions>
|
|
|
42c953 |
+ <action name="on" automatic="0"/>
|
|
|
42c953 |
+ <action name="off" />
|
|
|
42c953 |
+ <action name="reboot" />
|
|
|
42c953 |
+ <action name="status" />
|
|
|
42c953 |
+ <action name="list" />
|
|
|
42c953 |
+ <action name="monitor" />
|
|
|
42c953 |
+ <action name="metadata" />
|
|
|
42c953 |
+</actions>
|
|
|
42c953 |
+</resource-agent>
|
|
|
42c953 |
--
|
|
|
42c953 |
1.9.3
|
|
|
42c953 |
|