[Puppet Users] Is there a way...

Peter Berghold
Thu, 01 Dec 2011 15:49:00 -0000

... to invoke a template from multiple modules?  Here is what I mean:

I have a module called "postfix" which handles the installation and
base
configuration of the postfix MTA.  I have another module called
"spamassassin" which deals with the download and installation of the
Mail::SpamAssassin Perl module which incidently adds the init scripts for
SpamAssassin and the clamd binary.

I''d like that spamassassin module to modify both the master.cf and
main.cffile of postfix to enable its own functionality.

Rather than make SpamAssassin part of the postfix module I separated it out
since not all machines running postfix need to have the overhead of
SpamAssassin (eg. mailers behind the firewall that don''t accept outside
email) but my border MX machines do.

There''s another module that needs to modify postfix''s config
files to be
enabled as well and that''s the ClamAV module, I won''t go into
detail here.

The problem I see is if each of them modify the configs, the postfix module
is going to remove the changes the other modules made.

Is there a slick way of doing this?

--
Peter L. Berghold
Owner, Shark River Technical Solutions LLC