Ask Your Question
0

how to automate adding nodes to groups?

asked 2015-05-11 15:08:55 -0600

red-cricket gravatar image

updated 2015-05-14 00:31:39 -0600

csharpsteen gravatar image

Hi,

I have read this documentation here, https://docs.puppetlabs.com/pe/3.7/consoleclassesgroups.html#adding-nodes-to-a-node-group , about adding nodes to a group. Is there an automated way to accomplish this?

Thanks

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

answered 2015-05-12 03:23:02 -0600

the easiest way I've found of doing this is by using an enc then using the puppet node classify command in there

edit flag offensive delete link more
0

answered 2015-05-13 22:08:03 -0600

updated 2015-05-13 23:36:12 -0600

You can either use the Console Rake API which will be valid (although with deprecations) in the PE 3.x series, or use the Node Classifier Service API which is present in PE 3.7 and newer. The Node Classifier’s REST API is a more flexible alternative to the Console Rake API.

See razorsedge/oscar-cloudera as an example.

edit flag offensive delete link more
0

answered 2015-05-14 00:29:47 -0600

csharpsteen gravatar image

There is a nice Ruby library which wraps the Classifier REST API:

https://github.com/puppetlabs/puppet-...

And a set of Puppet types and providers that use the library to manipulate PE Classifier data:

https://github.com/puppetlabs/prosvcs...

I would recommend against building any new automation on top of the the Console Rake API as it is marked for removal in the next major version of PE.

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: 2015-05-11 15:08:55 -0600

Seen: 17,971 times

Last updated: May 14 '15