i created a rundeck job that will get the OS name and version from multiple nodes. I can do this by creating a job with a bash script like this...
#!/bin/bash
myosname=`cat /etc/redhat-release |cut -d' ' -f1`
myosversion=`cat /etc/redhat-release |cut -d' ' -f2`
echo "myosname=$myosname"
echo "myosversion=$myosversion"
this works but what I want to do is after the job runs against each node, i want a job that runs against only s specific node that will then update a database record with the os name and version. What I can't seem to understand is how do I pass the myosname and myosversion to a job that runs on another node. I have been trying to make this work using a workflow reference but I just can't seem to make it work. My question is, am i in the right area - i mean with using a job reference?
Thanks
Gary