Where does Rundesk execute local tasks from

Posted by Leon Stafford on Server Fault See other posts from Server Fault or by Leon Stafford
Published on 2013-06-26T09:03:23Z Indexed on 2013/06/26 10:22 UTC
Read the original article Hit count: 389

Filed under:
|

I'm trying to interact with the nodejs Azure sdk from a CentOS installation of Rundeck.

If I try from the "run" adhoc virtual shell, I am able to after running azure account import <mykey> and can then also execute other Azure commands inside of jobs if I set them as Rundeck node tasks and not selecting "dispatch to nodes" in the job settings.

Trying to run the Azure sdk commands as commands to be dispatched to the node (local) fails with the error:

localhost1-NodeDispatch-localexec   
04:53:04    /usr/bin/env: node: No such file or directory
04:53:04    Failed: NonZeroResultCode: Result code was 127

I am not able to "jumpstart" the same environment by running azure account import <mykey>

I am assuming this is a permissions/environmental issue, though not sure how to fix it.

UPDATE:

Executing whoami from the same job returns rundeck, so I assume I will need to either modify that to execute tasks as my system user or grant permissions to get the rundeck user into the node environment the Azure sdk is running in?

© Server Fault or respective owner

Related posts about java

Related posts about node.js