Closed gschueler closed 12 years ago
(by Alex-SF at 2011-07-22T08:16:27-07:00)
Some custom fields might also be a list (like tags). Perhaps Rundeck can interpret them if they are unquoted lists. Eg in yaml form,
classes: apache,nginix
classes: "apache,nginix"
Allowing a custom field to be interpreted as a list will facilitate tags-like filtering. Eg
-I classes=nginix -I role=web
(by stagr.lee at 2012-02-16T16:01:05-08:00)
Is this partially implemented? Seems to work on command line "dispatch -p myproj -I environment=prod" but not form rundeck web.
(by Greg Schueler at 2012-02-16T16:13:10-08:00)
The GUI simply doesn't support filtering by custom attributes yet. This is supported in the underlying filter code, and the CLI tools. it needs to be added to the GUI
(by Etienne Pelletier at 2012-02-16T16:38:17-08:00)
What about in the XML job description too? I really want to be able to specify a dynamic node filter using the custom attributes. That way I can define something like environment="production" in my node definition, and use a job option to specify the environment dynamically.
This will give me the possibility of making the option required. That way I don't dispatch commands to ALL environment by accident if the "environment" option wasn't specified.
Here's an example of what I'm talking about:
...
...
(by Etienne Pelletier at 2012-02-16T16:38:52-08:00)
That should have been ${option.env} btw.
(by Greg Schueler at 2012-02-16T17:44:50-08:00)
Yes, needs to be supported in the xml/yaml serialization formats as well too
(by Phil Spencer at 2012-02-29T08:27:34-08:00)
Am also interested in this! I am trying to get some puppet facts (facter -p) into rundeck. I am using puppet-rundeck, to include those facts
But rundeck isn't picking those fields up in the include/exclude filters
Since 1.3 you are able to generate custom fields on the fly based on the input from your resource provider. These fields are shown in the UI but are not usable to create a filter. According to Alex-SF (via IRC) this is an oversight and should be implemented.
original LH ticket
Original Creator: Marcello de Sousa