Ask Your Question
0

Can "puppet resource user" answer JSON?

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

brads gravatar image

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

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?

Thanks,

Brad

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

spuder gravatar image

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

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

Checkout this blog for a possible workaround:
http://www.halkeye.net/2012/03/14/output-pretty-json-puppet/

edit flag offensive delete link more

Comments

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

Stats

Asked: 2014-01-16 15:18:38 -0500

Seen: 129 times

Last updated: Feb 04 '14