Ask Your Question
0

Can I query REST API to get list of groups?

asked 2014-08-31 09:32:18 -0600

Jamie gravatar image

Like the title says. I'd like to make a REST API query to the puppet master node to get the list of groups, and then query the details of each group to get the list of nodes under it.

Is this possible?

Alternatively, is it possible via the PuppetDB API?

edit retag flag offensive close merge delete

Comments

The puppetmaster doesn't know anything about groups. Are you talking about puppet dashboard or the pe console?

lavaman gravatar imagelavaman ( 2014-09-02 17:18:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-23 23:50:10 -0600

binford2k gravatar image

Assuming you are referring to groups in the PE Console, you should use the puppetclassify ruby gem for this.

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

Stats

Asked: 2014-08-31 09:32:18 -0600

Seen: 243 times

Last updated: Jul 23