Thanks, but I says about query like this:

["*and*",
  ["and",
    ["=", "type", "Class"],
    ["=", "title", "Php"]],
  ["and",
    ["=", "type", "Class"],
    ["=", "title", "Nginx"]]]


Unfortunately, this query doesn't work.

I use generate function and my own python script for puppetdb query. *My 
question is how get list of nodes with two resources in one query.*

четверг, 7 августа 2014 г., 16:18:45 UTC+3 пользователь Ken Barber написал:
>
> I might be thinking about this the wrong way, but I think the API can 
> only do so much on the server side to achieve this. In particular I 
> want to do a distinct aggregation but we don't support that. 
>
> Fortunately, this is achievable on the command line with a tool like 
> JGrep: http://jgrep.org/#howto 
>
> Here is how I would do it: 
>
> https://gist.github.com/kbarber/6840f5b1a74d985d8167 
>
> Any entry that has a 2 next to it, meets the criteria basically. 
>
> ken. 
>
> On Thu, Aug 7, 2014 at 10:02 AM, Maksim Podlesniy <[email protected] 
> <javascript:>> wrote: 
> > How I may find all nodes with two specified classes? Example: find all 
> nodes 
> > with class Nginx and Php 
> > 
> > Sorry for my bad english. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Puppet Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/puppet-users/8ae479f4-c700-490f-83d3-4e6ec1df292a%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/663cecf7-57ab-4c22-b0e0-e9123ba758bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to