You could test for the other class and fail, something like if Defined(Class['dma']) Fail "you cannot use postfix with dma"
Typed from my phone, please check syntax and caps and such. On Saturday, May 28, 2016, Dan Mahoney, System Admin <goo...@gushi.org> wrote: > Hey there. > > This is a weird question, but I guess I'll ask it anyway. > > Is there a way to say one of the following two things? > > 1) That you want a manifest to deliberately break when you try to include > two different items? For example, most of our machines run a very simple > mailer called DMA (dragonfly mail agent), but some machines (which handle > inbound mail) require full blown postfix. I'd love for the manifest to > simply refuse to operate. Since there's no common files between them, > right now if you try to install both, you'll just have a bunch of Augeas > changes required for each MTA being made back and forth. > > 2) To say that if I've installed the "postfix" module, that it basically > de-includes the "dma" class from the manifest? > > I realize I could in fact create an "mta" class which installs dma by > default, but parameterize it such that postfix is another option. Are > there any other ways? > > -Dan > > -- > > --------Dan Mahoney-------- > Techie, Sysadmin, WebGeek > Gushi on efnet/undernet IRC > ICQ: 13735144 AIM: LarpGM > Site: http://www.gushi.org > --------------------------- > > -- Rob Nelson rnels...@gmail.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC76iT_ZBrgcRsfZzHU%2BXn4YRxfhuSGLWB1PKqJnuH5-dyZNGw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.