Ask Your Question

Revision history [back]

At present, the best way I am aware of to query PuppetDb from a manifest is to use PuppetDBQuery which is a third party module and therefor not officially supported.

While it would be possible to use the generate() function to use curl to query puppetdb, but that is pretty hacky and also winds up in a grey area between what is supported (the REST API) and what is not (custom scripts).