Node hostname (and possibly other variables) not being parsed in external script
-
Greg Schueler
- State changed from new to open
- Tag set to properties, script
- Milestone set to Rundeck 1.4.2
- Milestone order changed from 119 to 0
the script re-writing was disabled for "external script files" in rundeck 1.4. See issue #440 Scriptfiles get munged (don't rewrite them).
I see that the documentation does not clearly indicate that it has been disabled.
fyi:
@property@syntax is used for contents of scripts only.$RD_NODE_HOSTNAMEis passed as environment variable, but requires that your open SSH server sets AcceptEnv directive in sshd_config. the${property}syntax is used only on commandline arguments. See http://rundeck.org/docs/RunDeck-Guide.html#script-usageSo if you set up your test.sh to allow commandline arguments, or your ssh server to allow ENV variables, then you can work around this issue.
I'll put this issue under 1.4.2 since we either need to update the documentation, or consider allowing
@property@expansion for external script files if indicated with a checkbox (make it optional). -
Greg Schueler
- Tag changed from properties, script to enhancement, properties, script
- Milestone changed from Rundeck 1.4.2 to Rundeck 1.4.3
- Milestone order changed from 3 to 0
Moving this to 1.4.3 as an enhancement request. I will update the documentation for the 1.4.2 release to clarify things.
-
Greg Schueler
- Assigned user set to Greg Schueler
- Milestone cleared.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.