Ask Your Question

Can "puppet resource user" answer JSON?

asked 2014-01-16 15:18:38 -0600

brads gravatar image

updated 2014-02-04 15:19:29 -0600

Using a stand-alone puppet, I want to lookup the puppet resource with the results in JSON format.

If the puppet CommandLine isn't the right tool, is there another tool which can query resources and return the results in JSON?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-17 17:12:00 -0600

spuder gravatar image

updated 2014-01-20 17:57:41 -0600

Checking the man page for puppet resource shows no option for json output.

Checkout this blog for a possible workaround:

edit flag offensive delete link more


It's quite annoying that puppet resource doesn't output json as default but mco puppetral does !!! This is not enterprise. Anyone submitted a feature reqeust ?

FranzCC gravatar imageFranzCC ( 2017-01-26 05:06:47 -0600 )edit

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-01-16 15:18:38 -0600

Seen: 258 times

Last updated: Feb 04 '14