PuppetDB pql query

asked 2017-11-03 09:30:52 -0500

jason gravatar image


I am trying to create a puppetdb query that will return a hash of facts for each certname something like the following (which is not valid)

facts[certname,value]{ name = 'operatingsystemrelease' or name = 'kernelrelease' group by certname}

I am essentially trying to return a specific set of facts for each certname available, but having a lot of trouble trying to figure it out. any help would be much appreciated. or maybe I will have to run multiple queries and smash the hashes together after the facts (which seems really inefficient)

edit retag flag offensive close merge delete