X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Fmanifests%2Finit.pp;h=fd41732735cf4226551c2b51f4832e667512b73a;hb=368e147f10b8e748f7e171a15568a94d79599039;hp=e83a9dfb8be0b852c6246300639a7177ba60765a;hpb=ec37b63d7ed277542e0d2e2fc2fff10ce6acaf72;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index e83a9dfb8..fd4173273 100644 --- a/modules/exim/manifests/init.pp +++ b/modules/exim/manifests/init.pp @@ -1,14 +1,29 @@ -class exim { - - $is_mailrelay = has_role('mailrelay') - $is_bugsmx = has_role('bugsmx') - $is_rtmaster = has_role('rtmaster') - $is_packagesmaster = has_role('packagesmaster') - $is_packagesqamaster = has_role('packagesqamaster') - +# 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, + Boolean $is_packagesmaster = false, + Boolean $is_packagesqamaster = false, + Integer $smarthost_port = 587, +) { 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': }