- From: markus korn <
>
- To:
- Subject: [chef] Re: Re: Re: Re: New Community Cookbook: MongoDB
- Date: Fri, 16 Sep 2011 21:35:41 +0200
On Fri, Sep 16, 2011 at 6:45 PM, Brad Knowles
<
>
wrote:
>
On Sep 16, 2011, at 9:30 AM, Brad Knowles wrote:
>
[...]
>
>
In de-composing the various AND conditions, we ran across an issue with the
>
line that reads:
>
>
recipes:mongodb\\:\\:replicaset AND \
>
>
I was wondering why this particular syntax was used (with the
>
double-backslashes), instead of a syntax more like this:
>
>
recipes[mongodb::replicaset] AND \
>
The query syntax for searches in the expanded run_list is documented
in the chef wiki at [0].
It should be
search(:node, 'recipes:apache2\:\:mod_proxy_ajp')
And this translates to
irb(main):006:0* 'recipes:apache2\:\:mod_proxy_ajp'
=> "recipes:apache2\\:\\:mod_proxy_ajp"
So the query itself should be alright. But, as mentioned in the wiki,
you need at least chef 0.9.8 for this feature.
It is possible you are using an older version of chef?
Greetings,
have a nice weekend,
Markus
[0]
http://wiki.opscode.com/display/chef/Search#Search-FindNodeswithaRecipeintheExpandedRunList
Archive powered by MHonArc 2.6.16.