move exim vs. postfix, heavy vs. not, into hiera
[mirror/dsa-puppet.git] / modules / exim / manifests / init.pp
index fec2db5..fd41732 100644 (file)
@@ -1,4 +1,13 @@
+# our exim class
+# @param smarthost host to relay through (if unset)
+# @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_packagesqamaster this system handles packages.qa.debian.org
+# @param smarthost_port the port on which satellites send mail to the smarthost
 class exim (
+  Optional[String] $smarthost,
   Boolean $is_bugsmx = false,
   Boolean $is_mailrelay = false,
   Boolean $is_rtmaster = false,
@@ -9,6 +18,12 @@ class exim (
   include exim::vdomain::setup
   include debian_org::mail_incoming_port
 
+  if $smarthost {
+    $heavy = false
+  } else {
+    $heavy = true
+  }
+
   munin::check { 'ps_exim4': script => 'ps_' }
   munin::check { 'exim_mailqueue': }
   munin::check { 'exim_mailstats': }