token expansion in nodes filter
-
Alex-SF
- Milestone cleared.
- Milestone order changed from 17 to 0
-
Alexei Bratuhin
Hello Vincent, i've implemented this feature for tags and names - it currently suffies my needs. Please try it out and give feedback, if possible.
Regards. -
Alexei Bratuhin
Forgot to mention - there is a pull-request pending:
https://github.com/dtolabs/rundeck/pull/36 -
Vincent Behar
Thanks, I'll try
-
Greg Schueler
- Milestone set to Rundeck 1.3
- Milestone order changed from 39 to 0
-
Alex-SF
- Assigned user set to Greg Schueler
-
Alex-SF
- Tag set to feature request, tokens
-
Deleted User
- State changed from new to needs_verification
(from [c1137d39a3c8c6a895d28a7d06dc1d63086a42d1]) Add support for variable expansion in job node filters. (pull req #39) [#235 state:needs_verification] https://github.com/dtolabs/rundeck/commit/c1137d39a3c8c6a895d28a7d0...
-
Moses Lei
- Tag changed from feature request, tokens to feature request, documentation, tokens
The fact that this is allowed now needs to be added to documentation
-
Moses Lei
- State changed from needs_verification to open
I tested this with this job:
- id: filter-variable-expansion-test1 project: test loglevel: INFO sequence: keepgoing: false strategy: node-first commands: - exec: uname -a description: '' name: testjob1 uuid: filter-variable-expansion-test1 nodefilters: dispatch: threadcount: 1 keepgoing: false excludePrecedence: true include: name: ${option.hosts} options: hosts: {}It sort of works. I get this message when I get to the execution screen:
I enter the hostname in the option box and click Run Job Now.Warning: The Node filters specified for this Job do not match any nodes, execution will fail.- If I use the ajax version of the green Play button from the
jobs list (opens in same page), then clicking Run Job Now does
absolutely nothing (the dialog closes and I get back to the normal
jobs page)
- If I middle click (open in new tab) the green Play button and run it from there, I still get the warning message but the job works.
-
Greg Schueler
- Milestone order changed from 1 to 0
i believe your problem 1: was just that the page might not update to reflect the executing job if it finishes quickly.
Adding documentation.
-
Deleted User
- State changed from open to needs_verification
(from [b2db43936473052bf2f69b8ebc727b28ef132826]) Add documentation about dynamic node filters via token expansion. [#235 state:needs_verification] https://github.com/dtolabs/rundeck/commit/b2db43936473052bf2f69b8eb...
-
Moses Lei
We may want to disable the warning if there are variables in the filters...
-
Greg Schueler
should it display some other text in this case? like "Note: The Node filters specified for this Job contain variable references, and the runtime nodeset cannot be determined."
-
Alex-SF
+1
-
Greg Schueler
(from [3f0ab992529554e993a35c947c93c2c620dc460b]) Add note about filter variables in execute page [#235 state:needs_verification] https://github.com/dtolabs/rundeck/commit/3f0ab992529554e993a35c947...
-
Alex-SF
- State changed from needs_verification to resolved
Verified in http://build.rundeck.org/job/release-1.3-rc/99/
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.