Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

honor project level user name #6

Open
zhjchen opened this issue Mar 28, 2019 · 1 comment
Open

honor project level user name #6

zhjchen opened this issue Mar 28, 2019 · 1 comment

Comments

@zhjchen
Copy link

zhjchen commented Mar 28, 2019

We are using rundeck 2.10.8 and trying to adopt openssh bastion node execution plugin,
However, I have to set username as node attribute. Otherwise, openssh node executor cannot get the username for the remote host, e.g

ssh -q -oClearAllForwardings=yes -F /tmp/ssh_config.WG9t @my-remote-host uptime

I have already set property project.ssh.user in project.properties. But it does not get honored.

In Rundeck document https://docs.rundeck.com/2.10.8/plugins-user-guide/ssh-plugins.html :

If the username node attribute is not set, then the static value provided via project or framework configuration is used. The username for a node is determined by looking for a value in this order:

Node level: username node attribute. Can contain property references to dynamically set it from Option or Execution values.
Project level: project.ssh.user property in project.properties file for the project.
Rundeck level: framework.ssh.user property in framework.properties file for the Rundeck installation.

@reinerrdeck
Copy link

Hi,

Right now the plugin only accepts the user from the node definition. Check that:

https://github.com/rundeck-plugins/openssh-bastion-node-execution/blob/master/contents/node-executor#L54

Greetings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants