Ask Your Question

puppet-query in windows what is the proper query format?

asked 2017-08-15 11:48:23 -0600

SteveA gravatar image

I can find no examples of the proper format to query using the puppet-query command in windows. All examples of puppet query in the docs seem to be for the unix version and not for windows. I try these formats and get either invalid arguments or panicked thread 'main' rust error. How would one go about listing the nodes in the puppet database using the windows tool puppet-query.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-17 10:11:47 -0600

SteveA gravatar image

I can answer my own question. I've been able to successfully query using this format in windows after generating a token.

puppet-query "nodes[certname]{deactivated is null}"

This will produce a json formatted list of active nodes.

[ { "certname": "" }, { "certname": "" } ]

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


Asked: 2017-08-15 11:48:23 -0600

Seen: 47 times

Last updated: Aug 17 '17