how to use the puppetdb API to combine facts
0
I'm using puppet version 5.3.6. I'm able to query the puppetdb and get lots of useful information like this: $ curl -s -X GET http://localhost:8080/pdb/query/v4/facts --data-urlencode 'query=["extract", [["function","count"],"value"],["=","name","operatingsystem"],["group_by", "value"]]' | python -mjson.tool [ { "count": 339, "value": "OracleLinux" }, { "count": 73, "value": "RedHat" } ] AND: $ curl -s -X GET http://localhost:8080/pdb/query/v4/facts --data-urlencode 'query=["extract", [["function","count"],"value"],["=","name...