-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add metadata file for fence_ovh_cloud_rest
- Loading branch information
Showing
1 changed file
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<?xml version="1.0" ?> | ||
<resource-agent name="fence_ovh_cloud_rest.py" shortdesc="Fence agent for OVH Cloud (REST API)" > | ||
<longdesc>Fence agent for OVH Cloud (REST API) with authentication via Oauth</longdesc> | ||
<vendor-url>https://api.ovh.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="application_key" unique="0" required="1"> | ||
<getopt mixed="-k, --application-key=[application-key]" /> | ||
<content type="string" /> | ||
<shortdesc lang="en">OVH Oauth application key</shortdesc> | ||
</parameter> | ||
<parameter name="application_secret" unique="0" required="1"> | ||
<getopt mixed="-s, --application-secret=[application-secret]" /> | ||
<content type="string" /> | ||
<shortdesc lang="en">OVH Oauth application secret</shortdesc> | ||
</parameter> | ||
<parameter name="token" unique="0" required="1"> | ||
<getopt mixed="-t, --token=[token]" /> | ||
<content type="string" /> | ||
<shortdesc lang="en">OVH Oauth token </shortdesc> | ||
</parameter> | ||
<parameter name="region" unique="0" required="1"> | ||
<getopt mixed="-r, --region=[region]" /> | ||
<content type="string" /> | ||
<shortdesc lang="en">OVH region</shortdesc> | ||
</parameter> | ||
<parameter name="service_name" unique="0" required="1"> | ||
<getopt mixed="-n, --service-name=[service-name]" /> | ||
<content type="string" /> | ||
<shortdesc lang="en">OVH service name</shortdesc> | ||
</parameter> | ||
<parameter name="instance_id" unique="0" required="1"> | ||
<getopt mixed="-i, --instance-id=[instance-id]" /> | ||
<content type="string" /> | ||
<shortdesc lang="en">OVH service name</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</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]" /> | ||
<content type="string" /> | ||
<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="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="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="20" /> | ||
<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="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="monitor" /> | ||
<action name="metadata" /> | ||
<action name="manpage" /> | ||
<action name="validate-all" /> | ||
</actions> | ||
</resource-agent> |