Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2015-08-12 Thread Ken Barber
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]]') For me this query works. Here is the full curl example in the latest PDB (I

Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2015-08-12 Thread robert keating
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

Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-04 Thread Klavs Klavsen
Den tirsdag den 3. september 2013 20.09.19 UTC+2 skrev Ken Barber: 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]]]' Thank you - that

Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-03 Thread Ken Barber
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 kl...@enableit.dk wrote: This gives me the

[Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
I also tried https://github.com/dalen/puppet-puppetdbquery - but that didn't really get me any closer :( -- 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

[Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
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