public class OTWinRMNodeExecutor
extends java.lang.Object
implements com.dtolabs.rundeck.core.execution.service.NodeExecutor, com.dtolabs.rundeck.core.plugins.configuration.Describable
getKerberosUsername(com.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConnectionOptionsBuilder)
and
getClearAuthPassword(com.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConnectionOptionsBuilder).
The connection options can be altered as well by overriding willUseConnectionOptions(com.xebialabs.overthere.ConnectionOptions).| Modifier and Type | Class and Description |
|---|---|
protected class |
OTWinRMNodeExecutor.ConnectionOptionsBuilder |
static class |
OTWinRMNodeExecutor.Reason |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTH_TYPE_BASIC |
static java.lang.String |
AUTH_TYPE_KERBEROS |
static java.lang.String |
CERT_TRUST_ALL |
static java.lang.String |
CERT_TRUST_DEFAULT |
static java.lang.String |
CERT_TRUST_SELF_SIGNED |
static java.lang.String |
CONFIG_AUTHENTICATION |
static java.lang.String |
CONFIG_CERT_TRUST |
static java.lang.String |
CONFIG_HOSTNAME_VERIFY |
static java.lang.String |
CONFIG_LOCALE |
static java.lang.String |
CONFIG_PROTOCOL |
static java.lang.String |
CONFIG_SPN_ADD_PORT |
static java.lang.String |
CONFIG_SPN_USE_HTTP |
static java.lang.String |
CONFIG_WINRM_TIMEOUT |
static java.lang.String |
DEBUG_KERBEROS_AUTH |
static java.lang.String |
DEFAULT_AUTH_TYPE |
static com.xebialabs.overthere.cifs.WinrmHttpsCertificateTrustStrategy |
DEFAULT_CERT_TRUST |
static java.lang.Boolean |
DEFAULT_DEBUG_KERBEROS_AUTH |
static com.xebialabs.overthere.cifs.WinrmHttpsHostnameVerificationStrategy |
DEFAULT_HOSTNAME_VERIFY |
static int |
DEFAULT_HTTP_PORT |
static int |
DEFAULT_HTTPS_PORT |
static java.lang.Boolean |
DEFAULT_IS_DOMAIN_MEMBER |
static java.lang.Boolean |
DEFAULT_KERBEROS_CACHE |
static boolean |
DEFAULT_WINRM_CONNECTION_ENCRYPTED |
static int |
DEFAULT_WINRM_CONNECTION_TIMEOUT |
static java.lang.String |
DEFAULT_WINRM_PASSWORD_OPTION |
static java.lang.String |
DEFAULT_WINRM_PROTOCOL |
static java.lang.String |
HOSTNAME_TRUST_ALL |
static java.lang.String |
HOSTNAME_TRUST_BROWSER_COMPATIBLE |
static java.lang.String |
HOSTNAME_TRUST_STRICT |
static java.lang.String |
KERBEROS_CACHE |
static java.lang.String |
SERVICE_PROVIDER_TYPE |
static java.lang.String |
WINRM_AUTH_TYPE |
static java.lang.String |
WINRM_CERT_TRUST |
static java.lang.String |
WINRM_CONNECTION_TIMEOUT_PROPERTY |
static java.lang.String |
WINRM_DOMAIN |
static java.lang.String |
WINRM_HOSTNAME_TRUST |
static java.lang.String |
WINRM_IS_DOMAIN_MEMBER |
static java.lang.String |
WINRM_LOCALE |
static java.lang.String |
WINRM_PASSWORD_OPTION |
static java.lang.String |
WINRM_PASSWORD_STORAGE_PATH |
static java.lang.String |
WINRM_PORT |
static java.lang.String |
WINRM_PROTOCOL |
static java.lang.String |
WINRM_PROTOCOL_HTTP |
static java.lang.String |
WINRM_PROTOCOL_HTTPS |
static java.lang.String |
WINRM_SPN_ADD_PORT |
static java.lang.String |
WINRM_SPN_USE_HTTP |
static java.lang.String |
WINRM_TIMEOUT |
static java.lang.String |
WINRM_USER |
| Constructor and Description |
|---|
OTWinRMNodeExecutor(com.dtolabs.rundeck.core.common.Framework framework) |
| Modifier and Type | Method and Description |
|---|---|
static com.xebialabs.overthere.CmdLine |
buildCmdLineRaw(java.lang.String... args)
Build a CmdLine without escaping any part, using Raw arguments
|
protected com.xebialabs.overthere.CmdLine |
buildCommandLine(java.lang.String[] command)
Create the
CmdLine to run from the input string array, the default behavior is to use buildCmdLineRaw(String...) |
com.dtolabs.rundeck.core.execution.service.NodeExecutorResult |
executeCommand(com.dtolabs.rundeck.core.execution.ExecutionContext context,
java.lang.String[] command,
com.dtolabs.rundeck.core.common.INodeEntry node) |
protected java.lang.String |
getClearAuthPassword(OTWinRMNodeExecutor.ConnectionOptionsBuilder options)
Return the cleartext user password
|
com.dtolabs.rundeck.core.plugins.configuration.Description |
getDescription() |
protected java.lang.String |
getKerberosUsername(OTWinRMNodeExecutor.ConnectionOptionsBuilder options)
Return the full username@domain to use for kerberos authentication.
|
protected com.xebialabs.overthere.ConnectionOptions |
willUseConnectionOptions(com.xebialabs.overthere.ConnectionOptions options)
Called before connecting with the ConnectionnOptions that will be used, which can be altered here by a subclass.
|
public static final java.lang.String SERVICE_PROVIDER_TYPE
public static final int DEFAULT_WINRM_CONNECTION_TIMEOUT
public static final boolean DEFAULT_WINRM_CONNECTION_ENCRYPTED
public static final java.lang.String WINRM_PASSWORD_OPTION
public static final java.lang.String WINRM_PASSWORD_STORAGE_PATH
public static final java.lang.String DEFAULT_WINRM_PASSWORD_OPTION
public static final int DEFAULT_HTTPS_PORT
public static final int DEFAULT_HTTP_PORT
public static final java.lang.String WINRM_CONNECTION_TIMEOUT_PROPERTY
public static final java.lang.String WINRM_USER
public static final java.lang.String WINRM_PORT
public static final java.lang.String WINRM_AUTH_TYPE
public static final java.lang.String WINRM_CERT_TRUST
public static final java.lang.String WINRM_HOSTNAME_TRUST
public static final java.lang.String WINRM_PROTOCOL
public static final java.lang.String AUTH_TYPE_KERBEROS
public static final java.lang.String AUTH_TYPE_BASIC
public static final java.lang.String WINRM_PROTOCOL_HTTPS
public static final java.lang.String WINRM_PROTOCOL_HTTP
public static final java.lang.String WINRM_SPN_ADD_PORT
public static final java.lang.String WINRM_SPN_USE_HTTP
public static final java.lang.String WINRM_LOCALE
public static final java.lang.String WINRM_TIMEOUT
public static final java.lang.String WINRM_IS_DOMAIN_MEMBER
public static final java.lang.String WINRM_DOMAIN
public static final java.lang.Boolean DEFAULT_IS_DOMAIN_MEMBER
public static final java.lang.String HOSTNAME_TRUST_BROWSER_COMPATIBLE
public static final java.lang.String HOSTNAME_TRUST_STRICT
public static final java.lang.String HOSTNAME_TRUST_ALL
public static final java.lang.String CERT_TRUST_DEFAULT
public static final java.lang.String CERT_TRUST_ALL
public static final java.lang.String CERT_TRUST_SELF_SIGNED
public static final java.lang.String DEFAULT_AUTH_TYPE
public static final java.lang.String DEBUG_KERBEROS_AUTH
public static final java.lang.Boolean DEFAULT_DEBUG_KERBEROS_AUTH
public static final java.lang.String DEFAULT_WINRM_PROTOCOL
public static final java.lang.String KERBEROS_CACHE
public static final java.lang.Boolean DEFAULT_KERBEROS_CACHE
public static final com.xebialabs.overthere.cifs.WinrmHttpsCertificateTrustStrategy DEFAULT_CERT_TRUST
public static final com.xebialabs.overthere.cifs.WinrmHttpsHostnameVerificationStrategy DEFAULT_HOSTNAME_VERIFY
public static final java.lang.String CONFIG_AUTHENTICATION
public static final java.lang.String CONFIG_PROTOCOL
public static final java.lang.String CONFIG_CERT_TRUST
public static final java.lang.String CONFIG_HOSTNAME_VERIFY
public static final java.lang.String CONFIG_SPN_ADD_PORT
public static final java.lang.String CONFIG_SPN_USE_HTTP
public static final java.lang.String CONFIG_LOCALE
public static final java.lang.String CONFIG_WINRM_TIMEOUT
public OTWinRMNodeExecutor(com.dtolabs.rundeck.core.common.Framework framework)
public com.dtolabs.rundeck.core.plugins.configuration.Description getDescription()
getDescription in interface com.dtolabs.rundeck.core.plugins.configuration.Describablepublic com.dtolabs.rundeck.core.execution.service.NodeExecutorResult executeCommand(com.dtolabs.rundeck.core.execution.ExecutionContext context,
java.lang.String[] command,
com.dtolabs.rundeck.core.common.INodeEntry node)
executeCommand in interface com.dtolabs.rundeck.core.execution.service.NodeExecutorprotected com.xebialabs.overthere.CmdLine buildCommandLine(java.lang.String[] command)
CmdLine to run from the input string array, the default behavior is to use buildCmdLineRaw(String...)command - protected com.xebialabs.overthere.ConnectionOptions willUseConnectionOptions(com.xebialabs.overthere.ConnectionOptions options)
throws com.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConfigurationException
options - configured optionscom.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConfigurationExceptionpublic static com.xebialabs.overthere.CmdLine buildCmdLineRaw(java.lang.String... args)
args - the regular arguments which will be added without escapingprotected java.lang.String getClearAuthPassword(OTWinRMNodeExecutor.ConnectionOptionsBuilder options) throws com.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConfigurationException
com.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConfigurationExceptionprotected java.lang.String getKerberosUsername(OTWinRMNodeExecutor.ConnectionOptionsBuilder options) throws com.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConfigurationException
options - options buildercom.dtolabs.rundeck.plugin.overthere.OTWinRMNodeExecutor.ConfigurationExceptionCopyright © 2011-2016. All Rights Reserved.