Ask Your Question
0

Query PuppetDB from manifests?

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

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
0

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

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

Stats

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

Seen: 119 times

Last updated: Jul 07 '14