postfix: whether or not we touch main.cf is not dependent on membership in the lists...
[mirror/dsa-puppet.git] / modules / postfix / manifests / init.pp
index cd6470a..88591a9 100644 (file)
@@ -1,4 +1,6 @@
-class postfix {
+class postfix(
+  Boolean $manage_maincf = true,
+) {
   package { 'postfix':
     ensure => installed
   }
@@ -19,7 +21,7 @@ class postfix {
   munin::check { 'ps_smtp': script => 'ps_' }
   munin::check { 'ps_smtpd': script => 'ps_' }
 
-  if ! has_role('lists') {
+  if $manage_maincf {
     concat { '/etc/postfix/main.cf':
       notify  => Exec['service postfix reload'],
     }