Ask Your Question

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


I have read this documentation here, , about adding nodes to a group. Is there an automated way to accomplish this?


edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

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

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

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

csharpsteen gravatar image

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

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

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


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

Seen: 17,979 times

Last updated: May 14 '15