[Puppet Users] Negate or uninclude a class

luke.bigum
Mon, 18 Oct 2010 09:19:38 -0000

Hi guys,

Is there any functionality to negate or uninclude a class so as to
stop it''s resources being declared? I''m thinking along the
lines of
having some classes included by default, but in very select
circumstances to not include it. For example, LDAP auth on all servers
except the actual LDAP servers themselves.

Is the only way to do this to inherit the base class and override all
it''s resources to do the equivalent of "ensure => absent",
then
something like "if (tagged(class)) { include undo-subclass } " where
needed?

Thanks,

-Luke