| 1 | <?xml version="1.0" ?> |
| 2 | <resource-agent name="fence_docker" shortdesc="Fence agent for Docker" > |
| 3 | <longdesc>fence_docker is a Power Fencing agent which can be used with the Docker Engine containers. You can use this fence-agent without any authentication, or you can use TLS authentication (use --ssl option, more info about TLS authentication in docker: http://docs.docker.com/examples/https/).</longdesc> |
| 4 | <vendor-url>www.docker.io</vendor-url> |
| 5 | <parameters> |
| 6 | <parameter name="action" unique="0" required="1"> |
| 7 | <getopt mixed="-o, --action=[action]" /> |
| 8 | <content type="string" default="reboot" /> |
| 9 | <shortdesc lang="en">Fencing action</shortdesc> |
| 10 | </parameter> |
| 11 | <parameter name="ip" unique="0" required="1" obsoletes="ipaddr"> |
| 12 | <getopt mixed="-a, --ip=[ip]" /> |
| 13 | <content type="string" /> |
| 14 | <shortdesc lang="en">IP address or hostname of fencing device</shortdesc> |
| 15 | </parameter> |
| 16 | <parameter name="ipaddr" unique="0" required="1" deprecated="1"> |
| 17 | <getopt mixed="-a, --ip=[ip]" /> |
| 18 | <content type="string" /> |
| 19 | <shortdesc lang="en">IP address or hostname of fencing device</shortdesc> |
| 20 | </parameter> |
| 21 | <parameter name="ipport" unique="0" required="0"> |
| 22 | <getopt mixed="-u, --ipport=[port]" /> |
| 23 | <content type="integer" default="443" /> |
| 24 | <shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc> |
| 25 | </parameter> |
| 26 | <parameter name="method" unique="0" required="0"> |
| 27 | <getopt mixed="-m, --method=[method]" /> |
| 28 | <content type="select" default="onoff" > |
| 29 | <option value="onoff" /> |
| 30 | <option value="cycle" /> |
| 31 | </content> |
| 32 | <shortdesc lang="en">Method to fence</shortdesc> |
| 33 | </parameter> |
| 34 | <parameter name="plug" unique="0" required="1" obsoletes="port"> |
| 35 | <getopt mixed="-n, --plug=[id]" /> |
| 36 | <content type="string" /> |
| 37 | <shortdesc lang="en">Physical plug number on device, UUID or identification of machine</shortdesc> |
| 38 | </parameter> |
| 39 | <parameter name="port" unique="0" required="1" deprecated="1"> |
| 40 | <getopt mixed="-n, --plug=[id]" /> |
| 41 | <content type="string" /> |
| 42 | <shortdesc lang="en">Physical plug number on device, UUID or identification of machine</shortdesc> |
| 43 | </parameter> |
| 44 | <parameter name="ssl" unique="0" required="0"> |
| 45 | <getopt mixed="-z, --ssl" /> |
| 46 | <content type="boolean" default="1" /> |
| 47 | <shortdesc lang="en">Use SSL connection with verifying certificate</shortdesc> |
| 48 | </parameter> |
| 49 | <parameter name="ssl_insecure" unique="0" required="0"> |
| 50 | <getopt mixed="--ssl-insecure" /> |
| 51 | <content type="boolean" /> |
| 52 | <shortdesc lang="en">Use SSL connection without verifying certificate</shortdesc> |
| 53 | </parameter> |
| 54 | <parameter name="ssl_secure" unique="0" required="0"> |
| 55 | <getopt mixed="--ssl-secure" /> |
| 56 | <content type="boolean" /> |
| 57 | <shortdesc lang="en">Use SSL connection with verifying certificate</shortdesc> |
| 58 | </parameter> |
| 59 | <parameter name="api_version" unique="0" required="0"> |
| 60 | <getopt mixed="--api-version" /> |
| 61 | <content type="string" default="1.11" /> |
| 62 | <shortdesc lang="en">Version of Docker Remote API (default: 1.11)</shortdesc> |
| 63 | </parameter> |
| 64 | <parameter name="disable_ssl" unique="0" required="0"> |
| 65 | <getopt mixed="--disable-ssl" /> |
| 66 | <content type="boolean" /> |
| 67 | <shortdesc lang="en">Don't use SSL</shortdesc> |
| 68 | </parameter> |
| 69 | <parameter name="tlscacert" unique="0" required="0"> |
| 70 | <getopt mixed="--tlscacert" /> |
| 71 | <content type="string" /> |
| 72 | <shortdesc lang="en">Path to CA certificate (PEM format) for TLS authentication. Required if --ssl option is used.</shortdesc> |
| 73 | </parameter> |
| 74 | <parameter name="tlscert" unique="0" required="0"> |
| 75 | <getopt mixed="--tlscert" /> |
| 76 | <content type="string" /> |
| 77 | <shortdesc lang="en">Path to client certificate (PEM format) for TLS authentication. Required if --ssl option is used.</shortdesc> |
| 78 | </parameter> |
| 79 | <parameter name="tlskey" unique="0" required="0"> |
| 80 | <getopt mixed="--tlskey" /> |
| 81 | <content type="string" /> |
| 82 | <shortdesc lang="en">Path to client key (PEM format) for TLS authentication. Required if --ssl option is used.</shortdesc> |
| 83 | </parameter> |
| 84 | <parameter name="unix_socket" unique="0" required="0"> |
| 85 | <getopt mixed="--unix-socket" /> |
| 86 | <content type="string" /> |
| 87 | <shortdesc lang="en">Path to Docker's unix socket. Use this with --disable-ssl.</shortdesc> |
| 88 | </parameter> |
| 89 | <parameter name="quiet" unique="0" required="0"> |
| 90 | <getopt mixed="-q, --quiet" /> |
| 91 | <content type="boolean" /> |
| 92 | <shortdesc lang="en">Disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog.</shortdesc> |
| 93 | </parameter> |
| 94 | <parameter name="verbose" unique="0" required="0"> |
| 95 | <getopt mixed="-v, --verbose" /> |
| 96 | <content type="boolean" /> |
| 97 | <shortdesc lang="en">Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.</shortdesc> |
| 98 | </parameter> |
| 99 | <parameter name="verbose_level" unique="0" required="0"> |
| 100 | <getopt mixed="--verbose-level" /> |
| 101 | <content type="integer" /> |
| 102 | <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> |
| 103 | </parameter> |
| 104 | <parameter name="debug" unique="0" required="0" deprecated="1"> |
| 105 | <getopt mixed="-D, --debug-file=[debugfile]" /> |
| 106 | <content type="string" /> |
| 107 | <shortdesc lang="en">Write debug information to given file</shortdesc> |
| 108 | </parameter> |
| 109 | <parameter name="debug_file" unique="0" required="0" obsoletes="debug"> |
| 110 | <getopt mixed="-D, --debug-file=[debugfile]" /> |
| 111 | <shortdesc lang="en">Write debug information to given file</shortdesc> |
| 112 | </parameter> |
| 113 | <parameter name="version" unique="0" required="0"> |
| 114 | <getopt mixed="-V, --version" /> |
| 115 | <content type="boolean" /> |
| 116 | <shortdesc lang="en">Display version information and exit</shortdesc> |
| 117 | </parameter> |
| 118 | <parameter name="help" unique="0" required="0"> |
| 119 | <getopt mixed="-h, --help" /> |
| 120 | <content type="boolean" /> |
| 121 | <shortdesc lang="en">Display help and exit</shortdesc> |
| 122 | </parameter> |
| 123 | <parameter name="plug_separator" unique="0" required="0"> |
| 124 | <getopt mixed="--plug-separator=[char]" /> |
| 125 | <content type="string" default="," /> |
| 126 | <shortdesc lang="en">Separator for plug parameter when specifying more than 1 plug</shortdesc> |
| 127 | </parameter> |
| 128 | <parameter name="separator" unique="0" required="0"> |
| 129 | <getopt mixed="-C, --separator=[char]" /> |
| 130 | <content type="string" default="," /> |
| 131 | <shortdesc lang="en">Separator for CSV created by 'list' operation</shortdesc> |
| 132 | </parameter> |
| 133 | <parameter name="delay" unique="0" required="0"> |
| 134 | <getopt mixed="--delay=[seconds]" /> |
| 135 | <content type="second" default="0" /> |
| 136 | <shortdesc lang="en">Wait X seconds before fencing is started</shortdesc> |
| 137 | </parameter> |
| 138 | <parameter name="disable_timeout" unique="0" required="0"> |
| 139 | <getopt mixed="--disable-timeout=[true/false]" /> |
| 140 | <content type="string" /> |
| 141 | <shortdesc lang="en">Disable timeout (true/false) (default: true when run from Pacemaker 2.0+)</shortdesc> |
| 142 | </parameter> |
| 143 | <parameter name="login_timeout" unique="0" required="0"> |
| 144 | <getopt mixed="--login-timeout=[seconds]" /> |
| 145 | <content type="second" default="5" /> |
| 146 | <shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc> |
| 147 | </parameter> |
| 148 | <parameter name="power_timeout" unique="0" required="0"> |
| 149 | <getopt mixed="--power-timeout=[seconds]" /> |
| 150 | <content type="second" default="20" /> |
| 151 | <shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc> |
| 152 | </parameter> |
| 153 | <parameter name="power_wait" unique="0" required="0"> |
| 154 | <getopt mixed="--power-wait=[seconds]" /> |
| 155 | <content type="second" default="0" /> |
| 156 | <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc> |
| 157 | </parameter> |
| 158 | <parameter name="shell_timeout" unique="0" required="0"> |
| 159 | <getopt mixed="--shell-timeout=[seconds]" /> |
| 160 | <content type="second" default="3" /> |
| 161 | <shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc> |
| 162 | </parameter> |
| 163 | <parameter name="stonith_status_sleep" unique="0" required="0"> |
| 164 | <getopt mixed="--stonith-status-sleep=[seconds]" /> |
| 165 | <content type="second" default="1" /> |
| 166 | <shortdesc lang="en">Sleep X seconds between status calls during a STONITH action</shortdesc> |
| 167 | </parameter> |
| 168 | <parameter name="retry_on" unique="0" required="0"> |
| 169 | <getopt mixed="--retry-on=[attempts]" /> |
| 170 | <content type="integer" default="1" /> |
| 171 | <shortdesc lang="en">Count of attempts to retry power on</shortdesc> |
| 172 | </parameter> |
| 173 | <parameter name="gnutlscli_path" unique="0" required="0"> |
| 174 | <getopt mixed="--gnutlscli-path=[path]" /> |
| 175 | <shortdesc lang="en">Path to gnutls-cli binary</shortdesc> |
| 176 | </parameter> |
| 177 | </parameters> |
| 178 | <actions> |
| 179 | <action name="on" automatic="0"/> |
| 180 | <action name="off" /> |
| 181 | <action name="reboot" /> |
| 182 | <action name="status" /> |
| 183 | <action name="list" /> |
| 184 | <action name="list-status" /> |
| 185 | <action name="monitor" /> |
| 186 | <action name="metadata" /> |
| 187 | <action name="manpage" /> |
| 188 | <action name="validate-all" /> |
| 189 | </actions> |
| 190 | </resource-agent> |