You can easily do this using a knife (the knife is your friend!).
To get a list of all your nodes:
knife node list
To get a list of all your nodes in a given environment:
knife node list --environment <ENVIRONMENT>
With a list of nodes in hand, you can display the details for a node using:
knife node show <NODE_ID>
The show node appears, it will display:
Node Name: Environment: FQDN: IP: Run List: Roles: Recipes: Platform: Tags:
The Recipes: string is a list of recipes that have been applied to the node.
Using a knife search, you can search for a set of knots that meet certain criteria. Using it, you can find nodes that use or do not have a specific recipe applied to them.
Jordan Dea-Mattson
source share