public static class SaltSSHConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SaltSSHConfig |
build()
Build the configuration object.
|
SaltSSHConfig.Builder |
extraFilerefs(String extraFilerefs)
Pass in extra files to include in the state tarball.
|
SaltSSHConfig.Builder |
identitiesOnly(boolean identitiesOnly)
Use the only authentication identity files configured in the ssh_config files.
|
SaltSSHConfig.Builder |
ignoreHostKeys(boolean ignoreHostKeys)
By default ssh host keys are honored and connections will ask for approval.
|
SaltSSHConfig.Builder |
keyDeploy(boolean keyDeploy)
Set this flag to attempt to deploy the authorized ssh key with all minions.
|
SaltSSHConfig.Builder |
noHostKeys(boolean noHostKeys)
Removes all host key checking functionality from SSH session.
|
SaltSSHConfig.Builder |
passwd(String passwd)
Set the default password to attempt to use when authenticating.
|
SaltSSHConfig.Builder |
priv(String priv)
SSH private key file.
|
SaltSSHConfig.Builder |
refreshCache(boolean refreshCache)
Force a refresh of the master side data cache of the target's data.
|
SaltSSHConfig.Builder |
remotePortForwards(String remotePortForwards)
Setup remote port forwarding using the same syntax as with the -R parameter of
ssh.
|
SaltSSHConfig.Builder |
roster(String roster)
Define which roster system to use, this defines if a database backend, scanner,
or custom roster system is used.
|
SaltSSHConfig.Builder |
rosterFile(String rosterFile)
Define an alternative location for the default roster file location.
|
SaltSSHConfig.Builder |
scanPorts(String scanPorts)
Comma-separated list of ports to scan in the scan roster.
|
SaltSSHConfig.Builder |
scanTimeout(Double scanTimeout)
Scanning socket timeout for the scan roster.
|
SaltSSHConfig.Builder |
sshMaxProcs(int sshMaxProcs)
Set the number of concurrent minions to communicate with.
|
SaltSSHConfig.Builder |
sudo(boolean sudo)
Run command via sudo.
|
SaltSSHConfig.Builder |
user(String user)
Set the default user to attempt to use when authenticating.
|
SaltSSHConfig.Builder |
wipe(boolean wipe)
Remove the deployment of the salt files when done executing.
|
public SaltSSHConfig.Builder extraFilerefs(String extraFilerefs)
extraFilerefs
- the value to setpublic SaltSSHConfig.Builder identitiesOnly(boolean identitiesOnly)
identitiesOnly
- the value to setpublic SaltSSHConfig.Builder ignoreHostKeys(boolean ignoreHostKeys)
ignoreHostKeys
- the value to setpublic SaltSSHConfig.Builder keyDeploy(boolean keyDeploy)
keyDeploy
- the value to setpublic SaltSSHConfig.Builder noHostKeys(boolean noHostKeys)
noHostKeys
- the value the value to setpublic SaltSSHConfig.Builder passwd(String passwd)
passwd
- the value to setpublic SaltSSHConfig.Builder priv(String priv)
priv
- the value to setpublic SaltSSHConfig.Builder refreshCache(boolean refreshCache)
refreshCache
- the value to setpublic SaltSSHConfig.Builder remotePortForwards(String remotePortForwards)
remotePortForwards
- the value to setpublic SaltSSHConfig.Builder roster(String roster)
roster
- the value to setpublic SaltSSHConfig.Builder rosterFile(String rosterFile)
rosterFile
- the value to setpublic SaltSSHConfig.Builder scanPorts(String scanPorts)
scanPorts
- the value to setpublic SaltSSHConfig.Builder scanTimeout(Double scanTimeout)
scanTimeout
- the value to setpublic SaltSSHConfig.Builder sudo(boolean sudo)
sudo
- the value to setpublic SaltSSHConfig.Builder sshMaxProcs(int sshMaxProcs)
sshMaxProcs
- the value to setpublic SaltSSHConfig.Builder user(String user)
user
- the value to setpublic SaltSSHConfig.Builder wipe(boolean wipe)
wipe
- the value to setpublic SaltSSHConfig build()
Copyright © 2016. All rights reserved.