On Wednesday, January 29, 2014 12:59:16 AM UTC-6, Krist van Besien wrote:
I'm uncertain what you mean. If "doing this" refers to enumerating the cluster members in advance, then that can only be something that you, as cluster planner, do yourself, outside the scope of Puppet (c.f. "in advance").
If you're asking how to communicate that data to Puppet, then whatever data service is available is probably fine. Hiera would be great for this. With an ENC such as Foreman, you can have the ENC pass the member list to Puppet as a top-scope variable or as a parameter of one or more classes. In that case, you may need to create a wrapper class around whatever third-party module you want to use; its role would be to pass on the ENC-provided data as module class parameters.
If "doing this" is supposed to mean something more general, along the lines of "using Puppet to arrange my nodes into a cluster," then how best to approach that depends on a great many factors. We have already touched on some of those: what clustering software you want to use (if any), and the extent to which cluster membership can or must be dynamic. We can probably help you with devising manifests that will accomplish your objectives, but to do so we need more information.
John