Hi,

I'm just after some advice on how everyone else handles this.  We build out
various services like LDAP/Apache/etc and due to internal requirements we
end up with multiple 'types' of ldap server.  For example right now we have
"idm", "idmtest", "idmwrite", "jd", "plain", "testcolleague" and "write".
As you can imagine this gets to be a hassle to maintain.  Right now I use a
define that handles this, and in nodes.pp each node gets:

ldap::servertype { "idm": }

The define then has some common stuff for all servers and then an evil nest
of 'if $name =' statements.

I was thinking of moving to a pattern where I have:

include ldap::server in nodes.pp and then in the ldap::server class having
something like

include ldap::server::type and creating a type.pp for each one of the above
classes that does all the type specific stuff.

How do the rest of you solve this problem?  All the solutions are fairly
ugly but this seems the most elegant.

Thanks,
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to