docs icon indicating copy to clipboard operation
docs copied to clipboard

Secondary Sudo password instructions example

Open pwonson opened this issue 4 years ago • 0 comments

Describe the bug Customers do not understand the min set of values nor their relationship to the node executor.

All Required fields should be marked required and option fields marked as such.

Here is the min set needed for secondary sudo on the default ssh and sshj (should also provide an example of open ssh if it is possible)

Node attributes for the SSH - default node executor

  node-executor="jsch-ssh" file-copier="jsch-scp"
  always-set-pty="true" ssh-send-env="true"
  ssh-authentication="password" ssh-password-option="option.sshPassword"
  sudo-command-enabled="true" sudo-password-option="option.sudoPassword"
  sudo-command-pattern="^sudo$" sudo-prompt-pattern="^\[sudo\] password.*"

Node attributes for secondary sudo with SSHJ-SSH

  node-executor="sshj-ssh" file-copier="sshj-scp" keep-alive-interval="120" retry-counter="3"
  always-set-pty="true" ssh-send-env="true"
  ssh-authentication="password" ssh-password-option="option.sshPassword"
  sudo-command-enabled="true" sudo-password-option="option.sudoPassword"
  sudo-command-pattern="^sudo.*" sudo-prompt-pattern="[sudo] password.*"

Source page https://docs.rundeck.com/docs/administration/projects/node-execution/ssh.html#secondary-sudo-password-authentication

pwonson avatar Aug 12 '21 17:08 pwonson