Sent from iCloud
I can't provide specifics but this will surely do it:I don't know if there's an efficient way of searching for a specific cookbook across the run lists of all nodes, as I've never played with Chef's REST API, but there's probably a way. It's all a bit beyond what you'd normally do within a Chef cookbook, though, at least in my opinion. What are you trying to accomplish in the end?
https://docs.chef.io/api_chef_server.html#nodes
https://docs.chef.io/api_chef_server.html#searchOn Tue, Sep 15, 2015 at 2:05 PM, ANGELA EBIRIM < " data-mce-href="mailto: "> > wrote:Hello,
I'm hoping that someone could assist me.
I've got a situation in that I'm trying to find the nodes in an environment that contain a particular cookbook in it's run list.
How would I do this without using knife? I'm going to put it into a recipe.
Many thanksSent from iCloud
Archive powered by MHonArc 2.6.16.