- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: Recipe type search
- Date: Sat, 4 Jun 2011 12:08:15 -0700
On Friday, May 20, 2011 at 1:00 PM, Jason J. W. Williams wrote:
>
Hmm... I've tried that but I get this from the WebUI
>
>
"Unable to find the node. (400 "Bad Request")"
>
>
-J
>
>
On Fri, May 20, 2011 at 1:20 PM, Noah Kantrowitz
>
<
>
>
(mailto:
)>
>
wrote:
>
> search(:node, 'recipes:"postfix::delivery"')
>
>
>
> --Noah
>
>
>
> On May 20, 2011, at 12:09 PM, Jason J. W. Williams wrote:
>
>
>
> > To get a list of nodes with recipe postfix I'm using search(:node,
>
> > "recipe:postfix"), but in this case I actually only want nodes with
>
> > the postfix sub-recipe "delivery" (postfix::delivery). How do I
>
> > express that correctly in the search syntax? (just putting in
>
> > "postfix::delivery" returns an error) Thank you in advance.
>
> >
>
> > -J
I don' know about the WebUI, but this works for me in shef:
search(:node, 'recipes:postfix\:\:delivery')
Single vs. double quotes is significant here since you want to include a
backslash in the string instead of having ruby interpret it as an escape.
Dan
- [chef] Re: Re: Re: Recipe type search, Daniel DeLeo, 06/04/2011
Archive powered by MHonArc 2.6.16.