[chef] Re: Re: Re: Re: Search not working with knife


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Search not working with knife
  • Date: Thu, 30 May 2013 12:07:35 -0700


On Thursday, May 30, 2013 at 11:57 AM, Liam Kirsher wrote:

Thanks for the responses. Now I get it.

On 05/30/2013 11:35 AM, Morgan Blackthorne wrote:
If you want to search for all nodes, you can do "knife search node '*:*'".

--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS


On Thu, May 30, 2013 at 11:33 AM, Daniel Condomitti < " target="_blank"> > wrote:
A blank query isn't valid, you need to search for 'fqdn:mongo1' or 'name:mongo1'

Dan

Just FYI, there's a minor enhancement in Chef 11's knife where a query that does not contain a colon character gets expanded into a search across fqdn, IP address, roles, and a few other attributes:

https://github.com/opscode/chef/blob/master/lib/chef/knife/search.rb#L146

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§