X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fexim%2Fmanifests%2Finit.pp;h=6c9608101c96668986c711e1820cb46679a6439c;hb=e739bbe61de54a0b1fc01ba09f7802c9332c58fd;hp=3596c318ef42693db13e6c3548a39e30c301d5c0;hpb=3b9e600c947d00500a4f3e4d566aac3bc907a936;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index 3596c318e..6c9608101 100644 --- a/modules/exim/manifests/init.pp +++ b/modules/exim/manifests/init.pp @@ -1,15 +1,35 @@ +# our exim class +# @param use_smarthost use the smarthost +# @param smarthost host to relay through (if set and use_smarthost) +# @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 $use_smarthost = true, Boolean $is_bugsmx = false, Boolean $is_mailrelay = false, Boolean $is_rtmaster = false, + Boolean $is_packagesmaster = false, + Boolean $is_packagesqamaster = false, + Integer $smarthost_port = 587, ) { - - $is_packagesmaster = has_role('packagesmaster') - $is_packagesqamaster = has_role('packagesqamaster') - include exim::vdomain::setup include debian_org::mail_incoming_port + if $use_smarthost { + $heavy = false + + if ! smarthost { + fail('No smarthost set but use_smarthost is true') + } + } else { + $heavy = true + } + munin::check { 'ps_exim4': script => 'ps_' } munin::check { 'exim_mailqueue': } munin::check { 'exim_mailstats': }