Reputation: 107
I'm using rundeckrun and been able to successfully execute jobs on Rundeck by running :
rd.run_job('b673461c5-f330-44a0-8323-a8f1d377b4b8', argString={'from':'RundeckRun'})
Unfortunately the above will execute the job on all nodes by default, I need to be able to run the job only to a specific host. According to the documentation http://rundeckrun.readthedocs.org/en/latest/user_guide/jobs.html I think argString can do what I want but I'm not sure how the node name argument is specified as the bellow is not working :
rd.run_job('b673461c5-f330-44a0-8323-a8f1d377b4b8', argString={'from':'RundeckRun','node':'server1.example.com'})
Any help please ?
Thanks in advance,
N.
Upvotes: 0
Views: 325
Reputation: 107
Found the solution from inspecing the source code :
https://github.com/marklap/rundeckrun/blob/master/rundeck/api.py#L316
The right argument to use is hostname :
rd.run_job('b673461c5-f330-44a0-8323-a8f1d377b4b8', hostname='server1.example.com')
Too bad this and the other arguments can't be found in the documentation.
Upvotes: 1