I'm trying to query puppetdb for a list of hosts maching a certain regex (on hostname) and only returns 2 facts (ipaddress and hostname)
I'm trying to follow: http://docs.puppetlabs.com/puppetdb/latest/api/query/tutorial.html and I'm not even quite sure, wether or not, I should use a facts or a nodes, or a resources query ? I get some of the queries to return just fine.. f.ex. I can query on nodes: curl -X GET -H 'Accept: application/json' http://localhost:8080/v2/nodes --data-urlencode 'query=["~", ["fact", "hostname"], "webserver"]' But I can't figure out how I can make that query, return 1 extra fact (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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.