exim: allow a host to indicate that it is the master for tracker.d.o
[mirror/dsa-puppet.git] / modules / exim / manifests / init.pp
index d0bc0ba..babfa44 100644 (file)
@@ -4,8 +4,9 @@
 # @param is_bugsmx this system handles bugs.debian.org
 # @param is_mailrelay this system is a mailrelay, both in and out, for debian hosts
 # @param is_rtmaster this system handles rt.debian.org
-# @param is_packagesmaster this system handles packagesrt.debian.org
+# @param is_packagesmaster this system handles packages.debian.org
 # @param is_packagesqamaster this system handles packages.qa.debian.org
+# @param is_trackermaster this system handles tracker.debian.org
 # @param mail_port override the default incoming mailport (only applicable for hosts behind an incoming relay)
 # @param smarthost_port the port on which satellites send mail to the smarthost (needs to be the same on both sides)
 class exim (
@@ -16,6 +17,7 @@ class exim (
   Boolean $is_rtmaster = false,
   Boolean $is_packagesmaster = false,
   Boolean $is_packagesqamaster = false,
+  Boolean $is_trackermaster = false,
   Integer $smarthost_port = 587,
   Optional[Integer] $mail_port = undef,
 ) {
@@ -90,9 +92,14 @@ class exim (
   file { '/etc/exim4/locals':
     content => template('exim/locals.erb')
   }
-  file { '/etc/exim4/submission-domains':
-    content => template('exim/submission-domains.erb'),
+
+  concat { '/etc/exim4/submission-domains':
+    ensure_newline => true,
+    warn           => @(EOF),
+    ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+    | EOF
   }
+
   file { '/etc/exim4/host_blacklist':
     source => 'puppet:///modules/exim/common/host_blacklist',
   }