Ask Your Question

Query PuppetDB from manifests?

asked 2014-07-03 13:55:56 -0600

dbschofield gravatar image

Is there an official way to query PuppetDB from manifests that is supported by PuppetLabs?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-07 11:47:28 -0600

llowder gravatar image

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).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-07-03 13:55:56 -0600

Seen: 155 times

Last updated: Jul 07 '14