]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
add manualroute for keyring
authorStephen Gran <steve@lobefin.net>
Tue, 6 Apr 2010 20:23:34 +0000 (21:23 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 6 Apr 2010 20:23:34 +0000 (21:23 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/exim/templates/manualroute.erb

index c798cc9104827a8e295adcf27ea1fd33cb2395d9..9f78c16c3b1cd0973afd340af7af0788fbfe5eba 100644 (file)
@@ -9,13 +9,15 @@
 
 <%=
 mxmatches = [ fqdn ]
+routes = []
+extraroutes = []
+
 case fqdn
 when 'spohr.debian.org', 'draghi.debian.org', 'merikanto.debian.org' then
   mxmatches << 'mailout.debian.org'
+  extraroutes = [ 'keyring.debian.org:\t\tkaufmann.debian.org' ]
 end
 
-routes = []
-
 mxregex = Regexp.new('^\d+\s+(.*)\.$')
 mxinfo.keys.sort.each do |host|
   mxinfo[host][0]['mXRecord'].each do |mx|
@@ -30,5 +32,7 @@ mxinfo.keys.sort.each do |host|
   end
 end
 
+routes << extraroutes
+
 routes.join("\n")
 %>