Class SaltSSHConfig.Builder
java.lang.Object
com.suse.salt.netapi.calls.SaltSSHConfig.Builder
- Enclosing class:
SaltSSHConfig
Builder class to create configurations for Salt SSH.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the configuration object.extraFilerefs(String extraFilerefs) Pass in extra files to include in the state tarball.identitiesOnly(boolean identitiesOnly) Use the only authentication identity files configured in the ssh_config files.ignoreHostKeys(boolean ignoreHostKeys) By default ssh host keys are honored and connections will ask for approval.keyDeploy(boolean keyDeploy) Set this flag to attempt to deploy the authorized ssh key with all minions.noHostKeys(boolean noHostKeys) Removes all host key checking functionality from SSH session.Set the default password to attempt to use when authenticating.SSH private key file.randomThinDir(boolean randomThinDir) Force the salt-thin to be deployed in a random path every time salt-ssh is calledrefreshCache(boolean refreshCache) Force a refresh of the master side data cache of the target's data.remotePortForwards(String remotePortForwards) Setup remote port forwarding using the same syntax as with the -R parameter of ssh.Define which roster system to use, this defines if a database backend, scanner, or custom roster system is used.rosterFile(String rosterFile) Define an alternative location for the default roster file location.Comma-separated list of ports to scan in the scan roster.scanTimeout(Double scanTimeout) Scanning socket timeout for the scan roster.sshMaxProcs(int sshMaxProcs) Set the number of concurrent minions to communicate with.sudo(boolean sudo) Run command via sudo.Set the default user to attempt to use when authenticating.wipe(boolean wipe) Remove the deployment of the salt files when done executing.
-
Field Details
-
extraFilerefs
-
identitiesOnly
-
ignoreHostKeys
-
keyDeploy
-
noHostKeys
-
passwd
-
priv
-
randomThinDir
-
refreshCache
-
remotePortForwards
-
roster
-
rosterFile
-
scanPorts
-
scanTimeout
-
sudo
-
sshMaxProcs
-
user
-
wipe
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
extraFilerefs
Pass in extra files to include in the state tarball.- Parameters:
extraFilerefs- the value to set- Returns:
- this builder
-
identitiesOnly
Use the only authentication identity files configured in the ssh_config files. See IdentitiesOnly flag in man ssh_config.- Parameters:
identitiesOnly- the value to set- Returns:
- this builder
-
ignoreHostKeys
By default ssh host keys are honored and connections will ask for approval. Use this option to disable 'StrictHostKeyChecking.'- Parameters:
ignoreHostKeys- the value to set- Returns:
- this builder
-
keyDeploy
Set this flag to attempt to deploy the authorized ssh key with all minions. This combined with --passwd can make initial deployment of keys very fast and easy.- Parameters:
keyDeploy- the value to set- Returns:
- this builder
-
noHostKeys
Removes all host key checking functionality from SSH session.- Parameters:
noHostKeys- the value the value to set- Returns:
- this builder
-
passwd
Set the default password to attempt to use when authenticating.- Parameters:
passwd- the value to set- Returns:
- this builder
-
priv
SSH private key file.- Parameters:
priv- the value to set- Returns:
- this builder
-
randomThinDir
Force the salt-thin to be deployed in a random path every time salt-ssh is called- Parameters:
randomThinDir- value to set- Returns:
- this builder
-
refreshCache
Force a refresh of the master side data cache of the target's data. This is needed if a target's grains have been changed and the auto refresh timeframe has not been reached.- Parameters:
refreshCache- the value to set- Returns:
- this builder
-
remotePortForwards
Setup remote port forwarding using the same syntax as with the -R parameter of ssh. A comma separated list of port forwarding definitions will be translated into multiple -R parameters.- Parameters:
remotePortForwards- the value to set- Returns:
- this builder
-
roster
Define which roster system to use, this defines if a database backend, scanner, or custom roster system is used. Default: 'flat'.- Parameters:
roster- the value to set- Returns:
- this builder
-
rosterFile
Define an alternative location for the default roster file location. The default roster file is called roster and is found in the same directory as the master config file.- Parameters:
rosterFile- the value to set- Returns:
- this builder
-
scanPorts
Comma-separated list of ports to scan in the scan roster.- Parameters:
scanPorts- the value to set- Returns:
- this builder
-
scanTimeout
Scanning socket timeout for the scan roster.- Parameters:
scanTimeout- the value to set- Returns:
- this builder
-
sudo
Run command via sudo.- Parameters:
sudo- the value to set- Returns:
- this builder
-
sshMaxProcs
Set the number of concurrent minions to communicate with. This value defines how many processes are opened up at a time to manage connections, the more running processes the faster communication should be. Default: 25.- Parameters:
sshMaxProcs- the value to set- Returns:
- this builder
-
user
Set the default user to attempt to use when authenticating.- Parameters:
user- the value to set- Returns:
- this builder
-
wipe
Remove the deployment of the salt files when done executing.- Parameters:
wipe- the value to set- Returns:
- this builder
-
build
-