Chef 11 Knife API doesn't support Partial Search?


#1

Hi Chef,

Chef 11 supports Partial Search in recipes via this cookbook:

But the Chef Knife API doesn’t support Partial Search:
https://github.com/opscode/chef/blob/master/lib/chef/search/query.rb . Is
it going to be supported ? Seems it’s a minor change in this query.rb

Thanks
Jesse Hu, Project Serengeti http://www.projectserengeti.org/


#2

Thanks for bringing this up Hui.

Yes this is in the plans and being tracked by this ticket:

https://tickets.opscode.com/browse/CHEF-3878

However we first need to bring in the partial_search cookbook into chef
core. So this is not a trivial change.

– Serdar

On Sun, Oct 13, 2013 at 11:25 PM, Hui Hu huhui14@gmail.com wrote:

Hi Chef,

Chef 11 supports Partial Search in recipes via this cookbook:

https://github.com/opscode-cookbooks/partial_search/blob/master/libraries/partial_search.rb

But the Chef Knife API doesn’t support Partial Search:
https://github.com/opscode/chef/blob/master/lib/chef/search/query.rb . Is
it going to be supported ? Seems it’s a minor change in this query.rb

Thanks
Jesse Hu, Project Serengeti http://www.projectserengeti.org/


#3

Thanks Serdar. I used the partial_search.rb
https://raw.github.com/josephholsten/chef/b01a868a53d6d507f08e0facf507f0969168549b/lib/chef/partial_search.rb
mentioned in CHEF-3878 https://tickets.opscode.com/browse/CHEF-3878
and put it in lib/chef/search/, it works!

Jesse Hu | Project Serengeti http://projectserengeti.org/


Serdar Sutay wrote On Mon, 14 Oct 2013 09:28:06 -0700 :

Thanks for bringing this up Hui.

Yes this is in the plans and being tracked by this ticket:

https://tickets.opscode.com/browse/CHEF-3878

However we first need to bring in the partial_search cookbook into
chef core. So this is not a trivial change.

– Serdar

On Sun, Oct 13, 2013 at 11:25 PM, Hui Hu <huhui14@gmail.com
mailto:huhui14@gmail.com> wrote:

Hi Chef,

Chef 11 supports Partial Search in recipes via this cookbook:
https://github.com/opscode-cookbooks/partial_search/blob/master/libraries/partial_search.rb

But the Chef Knife API doesn't support Partial Search:
https://github.com/opscode/chef/blob/master/lib/chef/search/query.rb
. Is it going to be supported ? Seems it's a minor change in this
query.rb

Thanks
Jesse Hu, Project Serengeti <http://www.projectserengeti.org/>