Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

define password per node

33 views
Skip to first unread message

aristos....@gmail.com

unread,
Dec 8, 2024, 3:03:01 AM12/8/24
to rundeck-discuss
it sems that if I define the password here, all my jobs are working.

1.png

But if one of my nodes is using a different password, I have no way of defining the password for that node, and the job using that node, fails.

Is there a way to define a password per job, or per node? Because right now it seems I can only define a password per project.

aristos....@gmail.com

unread,
Dec 8, 2024, 3:37:23 AM12/8/24
to rundeck-discuss
in /home/rundeck/projects/nodes.yml I tried this

raspberry pi 3:
  nodename: raspberry pi 3
  hostname: 192.168.1.35
  osFamily: Linux
  ssh-key-storage-path: keys/raspberrypi
  node-executor: ssh
  username: pi
  tags: ''

But when I run the job I get this

Failed: PluginFailed: null
Execution failed: 126 in project raspberrypi: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [raspberry pi 3: PluginFailed: null + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, Node failures: {raspberry pi 3=[PluginFailed: null + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, status: failed]

rac...@rundeck.com

unread,
Dec 10, 2024, 6:29:55 AM12/10/24
to rundeck-discuss

Hi,

If you need to connect to multiple nodes using different passwords, saving the password on the Default Node Executor does not work. The correct method is to save the various passwords on the Key Storage and refer to them in the node definition; please see this.

To use a password saved on the Rundeck Key Storage, your node definition should be as follows:

node01: nodename: node01 hostname: 192.168.56.10 osFamily: unix description: rocky ssh-authentication: password ssh-password-storage-path: keys/mypassword tags: rocky username: vagrant

Note the ssh-authentication and ssh-password-storage-path attributes.

If you want a job level authentication method, the node definition should be:

node01: nodename: node01 hostname: 192.168.56.10 osFamily: unix description: rocky ssh-authentication: password ssh-password-option: option.mypassword tags: rocky username: vagrant

When the ssh-password-option attribute is used, it must point to a job option with the password.

Hope it helps!

aristos....@gmail.com

unread,
Dec 10, 2024, 7:49:45 AM12/10/24
to rundeck-discuss
it does. thanks!

rac...@rundeck.com

unread,
Dec 10, 2024, 7:56:40 AM12/10/24
to rundeck-discuss
Awesome, cheers!
Reply all
Reply to author
Forward
0 new messages