- From: Mike <
>
- To: "
" <
>
- Subject: [chef] Re: searching with chef
- Date: Mon, 4 Mar 2013 18:11:09 -0500
Try this:
knife search node "roles:<rolename> AND
'chef_environment:<environmentname>" -a ipaddress
-M
On Mon, Mar 4, 2013 at 6:08 PM, Maven User
<
>
wrote:
>
Hi guys -
>
>
I'm struggling a bit with searching within chef...
>
>
I'm trying to select all nodes that have a given role in a particular
>
environment.
>
>
I realize I can do something like:
>
>
knife search node "roles:<rolename>" -E <environmentname>
>
>
But how do I get things like the ip address from that object?
Archive powered by MHonArc 2.6.16.