[chef] Search chef: knife vs recipe


Chronological Thread 
  • From: Tucker < >
  • To: " " < >
  • Subject: [chef] Search chef: knife vs recipe
  • Date: Fri, 10 Oct 2014 11:29:27 -0700

I'm having a hard time finding actual answers to my questions about this, so now it's list time.  I'm trying to use the Chef server search API to generate parts of my Sensu configuration and am running into problems trying to deep match attributes.  It seems that the flattened attributes aren't accessible with a recipe... or I'm crazy.

* This works: knife search node 'alti_sensu_client:check_http'
* This recipe snippet does not: search(:node, 'alti_sensu_client:check_http')
* This recipe snippet does: search(:node, 'check_http:*')

While the last item works, it's not a very strict match and I'd really like it to be.  Should the second item work or not?


--

--tucker



Archive powered by MHonArc 2.6.16.

§