On May 3, 3:56 pm, Chris Phillips <ch...@untrepid.com> wrote: > Hi, > > I don't know if I'm just not getting it, but I'm struggling to find > "the" way to elegantly disable a class in its entirety. I am aware of > the foo::disabled conventions, but these are about the disabling of > the end service defined by the class, not the class itself.
[...] > So again, I just want to wipe out the impact of the class, unmanage as > it were, replace the contents with a nice simple { } regardless of > what it was written to do maybe, not force disabling of the end > result, and I'm assuming there is a great and painfully simple way to > do this with style, but it's missing me right now. There is no way to achieve precisely what you ask. Instead, you must avoid including the class in the node's catalog in the first place. Use conditional statements in your manifests (if / case) to select based on nodes' facts whether to include it, or include it only for certain nodes (which amounts to the same thing). >From the perspective of designing an ENC, you should be looking to add classes to a common base rather than subtract classes from an omnibus configuration. For what it's worth, I think that would still be a better design paradigm even if Puppet could provide the alternative. John -- 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.