- From: "Deprez, Tom" <
>
- To: "
" <
>
- Subject: [chef] Search within a template
- Date: Tue, 24 Jun 2014 21:58:23 +0000
- Accept-language: en-GB, en-US
Hi,
Is it possible to perform a search within a template file?
Ie
search(:node, “role:web-server”)
I’ve come across Chef::Search::Query but not sure if that’s what I should be using. Passing the search results into the template as a variable won’t work for what I’m trying to do.
Partial_search would be better, but I’ll settle for search!
Thanks
Tom
HBVB trading as Bauer Corporate Services (BCS) is a division of the Bauer Media
Group the largest consumer publisher in the UK, and second largest commercial
radio broadcaster. BCS provides financial services and manages and develops IT
systems on which our UK publishing, broadcast, digital and partner businesses depend.
The information in this email is intended only for the addressee(s) named above.
Access to this email by anyone else is unauthorised. If you are not the intended
recipient of this message any disclosure, copying, distribution or any action
taken in reliance on it is prohibited and may be unlawful. HBVB do not warrant that
any attachments are free from viruses or other defects and accept no liability for
any losses resulting from infected email transmissions.
Please note that any views expressed in this email may be those of the originator
and do not necessarily reflect those of this organisation.
HBVB is registered in England; Registered address is
1 Lincoln Court, Lincoln Road, Peterborough, PE1 2RF.
Registration number 8453545
- [chef] Search within a template, Deprez, Tom, 06/24/2014
Archive powered by MHonArc 2.6.16.