Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to query puppet db under /facts and receive only active instances

$
0
0
Hello, When querying puppet db with a query like this: "curl -X GET http://puppetserver:8080/pdb/query/v4/facts/ec2_project --data-urlencode 'query=[\"extract\", \"value\",[\"and\",[\"=\",\"certname\", \"${machine}\"]]]'" I receive all instances with the relevant ec2_project tag. I want to omit the inactive instances and receive only running ones. How can I get it done?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>