Can you help with this query? I am trying to get 2 facts from all of our
puppet clients in PuppetDB.
I tried variations of the following, but no luck: ('["or", ["=", "name",
"kernelversion"], ["=", "name", "instance_uuid"]]')
Thank you!
On Tuesday, September 3, 2013 at 11:09:19 AM UTC-7, Ken Barber wrote:
>
> Is it acceptable to do the search based on 'certname'? ie:
>
> curl -G 'http://localhost:8080/v2/facts' --data-urlencode
> 'query=["and",["~","certname","puppetdb?"],["or",["=","name","ipaddress"],["=","name","hostname"]]]'
>
>
>
> ken.
>
> On Mon, Sep 2, 2013 at 7:00 AM, Klavs Klavsen <[email protected]
> <javascript:>> wrote:
> > This gives me the ipaddress (and hostname).. now to figure out how to
> filter
> > on hostname regex..
> >
> > 'query=["=", "name", "ipaddress"]'
> >
> > --
> > 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 post to this group, send email to [email protected]
> <javascript:>.
> > Visit this group at http://groups.google.com/group/puppet-users.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
--
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/0a5346a6-2668-42bd-ab1b-334089b17133%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.