rundeck / rundeck

Enable Self-Service Operations: Give specific users access to your existing tools, services, and scripts
http://rundeck.org
Apache License 2.0
5.55k stars 921 forks source link

Node filter OR syntax #2341

Closed atheiman closed 7 years ago

atheiman commented 7 years ago

Issue type: Bug report/Enhancement Request

My Rundeck detail

How do I filter nodes based on an OR search. I've tried the following with no luck. Am I close on any of these or does this functionality not exist?

chef_environment:my_environment (roles:role_one OR roles:role_two)
chef_environment:my_environment roles:(role_one|role_two)
chef_environment:my_environment roles:role_one,role_two
chef_environment:my_environment roles:role_one roles:role_two
atheiman commented 7 years ago

Got this working with both of the following search syntax:

chef_environment:my_environment roles:(.*role_one.*|.*another_role.*|.*third_role.*)
chef_environment:my_environment roles:.*(role_one|another_role|third_role).*

Not sure what I was doing wrong before...

Hope this helps anyone who finds this, I didnt see it documented very well in http://rundeck.org/docs/manual/nodes.html#node-filtering