Hi! My next issue in migrating to RHEL8 from RHEL7 is trying to run scripts on a different node. I added the following to
/var/lib/rundeck/projects/myProject/etc/resources.xml
<node
name="JumpSrvr" description="Jump Server"
hostname="myServer.mydomain" osFamily="unix"
username="myUser">
<attribute
name="script-exec-shell" value="bash -c"/>
<attribute
name="script-exec" value="${exec.command}"/>
<attribute
name="local-node-executor" value="script-exec"/>
</node>
Then I put the id_rsa.pub contents into that server in the "myUser" authorized_keys file. I verified I could ssh there without password from the rundeck machine to that user:
ssh myU...@myServer.myDomain
When I try to set up a simple script to test it, just doing a pwd, it fails with:
Failed: AuthenticationFailure: Authentication failure connecting to node: "JumpSrvr". Make sure your resource definitions and credentials are up to date.
Execution failed: 13 in project myProject: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [JumpSrvr: AuthenticationFailure: Authentication failure connecting to node: "JumpSrvr". Make sure your resource definitions and credentials are up to date. + {dataContext=MultiDataContextImpl(map={ContextView(node:JumpSrvr)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, node:JumpSrvr)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, Node failures: {JumpSrvr=[AuthenticationFailure: Authentication failure connecting to node: "JumpSrvr". Make sure your resource definitions and credentials are up to date. + {dataContext=MultiDataContextImpl(map={ContextView(node:JumpSrvr)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, node:JumpSrvr)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, status: failed]
Any pointers on how to troubleshoot this?
Thanks,
Eric