Hopefully this turns out to be an easy answer. Wanted to know if there is a way to get a list of nodes that all share the same role. I know I can perform a node listing as well as a role listing of the chef server, but would like to know if I run a knife winrm against an entire role what nodes will it run against? Thank you for your time.
I need to know if there is a way to get a listing of servers thats apart of a particular role I specify. using the 'knife search node 'role:[MY_ROLENAME]' command for some reason is not returning any items found :(.
Hmm apologies 'role:my_rolename' will only find nodes with that role in their unexpanded runlist. To find nested roles you can use the search 'roles:my_rolename' (or at least that's how it works with recipe/recipes search).
If for any reason the search returns 0 results, it will also return 0 results when included as part of a knife winrm command. You can try some wildcards and other searches to make sure it eventually returns something, like 'name:*' to list all the nodes for example.