In RDECK_BASE/etc/profile, I've added a number of custom environment variables in the form of RD_<VAR>. Once I've bounced the RunDeck server, these RD_<VAR> variables are all available to commands, jobs, and scripts running on the local RunDeck server host.
The problem I'm facing lies in trying to access these environment variables in remotely running jobs and scripts; they show up as undefined. And that makes sense, sort of. I'm executing a job and script on a remote host in a remote environment, so it stands to reason my local environment variables would be undefined there.
But what if I want and need them defined remotely? What if I need to run a remote job and script, but I want the local values of the RD_<VAR> variables passed along to the remote job and script execution? How do I do that?
I've tried adding both $RD_<VAR> and @RD_<VAR>@ onto the remote job option line, but they don't get interpreted. They get passed forward literally, so the value on the remote end is "$RD_<VAR>", and not what $RD_<VAR> was set to in RDECK_BASE/etc/profile.