On Wed, Feb 9, 2011 at 3:06 AM, Nigel Kersten <ni...@puppetlabs.com> wrote:
> > > This is actually my favorite way of doing things. A single default > node that includes a single module "base" which then decides which > other modules to include. > > This does work best if you distribute custom facts that provide more > abstracted semantics about roles though. Otherwise you end up with > spaghetti Puppet code like you've started with above :) > > Say you distribute a custom fact "role", it then becomes as simple as: > > class base { > > if $role == "foo" { include foo } > > } > > This is really helpful. It allows extra flexibility and still keeps things compartmentalized. Thanks, Joe -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.