Ask Your Question
3

Adding nodes to a group using the API?

asked 2014-09-17 07:51:31 -0500

slice16 gravatar image

Afternoon all,

I am in the process of evaluating puppet as our configuration management solution and am looking into how we can integrate it as part of our provisioning process. We have already put significant development time into System Center orchestrator as our workflow engine. Puppet's configuration management solution is perfect for the OS configuration once the Virtual machine has been deployed.

As part of my workflow, I want to add a step that basically completes the following:

1) Approve the newly added node and add to the Puppet Master 2) Add the virtual machine to the relevant groups so the correct classes can be inherited.

I have the option to either connect over SSH and run commands, or the best solution is to work with a REST API. Is it possible to do either of the two steps using the Puppet API?

If so, do we have some documnentation on what I need to PUT/GET etc to make it work?

Thanks in advance,

Paul

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-18 11:43:32 -0500

turbodog gravatar image

Hi Paul,

With the release of Puppet Enterprise 3.7 you could take advantage of the new rules-based Node Classifier UI and Service. Based on facts about the machine, PE would recognize and newly provisioned server and give it the right classes automatically.

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-09-17 07:51:31 -0500

Seen: 140 times

Last updated: Sep 17 '14