Is there a way we can select a host tags dynamically in "Node Filter" section based on the value selected in "Options" field ?

448 views
Skip to first unread message

Kannan Mohan

unread,
Jul 8, 2015, 9:53:14 AM7/8/15
to rundeck...@googlegroups.com
Hi Folks,

Is there a way we can select a host tags dynamically in "Node Filter" section based on the value selected in "Options" field ?

Currently I need to run a job on different set of hosts based on the "Options" field selected. Let say i have two options like "Group 1" and "Group 2" . And when i select "Group 1" option a particular set of host tags has to get selected and when selecting "Group 2" another set of host tags has to get selected and executed on those hosts. By doing this we can run that job dynamically on different set of hosts depending on our need.

Thanks,
M. Kannan.

Alex Honor

unread,
Jul 8, 2015, 10:30:04 AM7/8/15
to rundeck...@googlegroups.com
Hi Kannan,

This is possible. You can reference option variables in the node filter. For example, create an option called "nodetag" and in the Node Filter field of the job form put ${option.nodetag}. When the user runs the job, they will select their tag choice and the node set will be filtered dynamically.

You can build on that idea using multiple dependent options. See http://rundeck.org/docs/manual/jobs.html#cascading-remote-options for more.

Thanks

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/eb8b4c9c-a2f6-4eb8-9b7d-1261cf2bbb7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Alex Honor

[SimplifyOps, Inc | a...@simplifyops.com ]

Be sure to comment and vote on Rundeck Feature Development!

Reply all
Reply to author
Forward
0 new messages