manualroute is now a template
authorStephen Gran <steve@lobefin.net>
Mon, 5 Oct 2009 00:38:38 +0000 (01:38 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 5 Oct 2009 00:38:38 +0000 (01:38 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/exim/files/common/manualroute [deleted file]
modules/exim/files/per-host/draghi.debian.org/manualroute [deleted file]
modules/exim/files/per-host/luchesi.debian.org/manualroute [deleted file]
modules/exim/files/per-host/spohr.debian.org/manualroute [deleted file]
modules/exim/manifests/init.pp
modules/exim/templates/manualroute.erb [new file with mode: 0644]

diff --git a/modules/exim/files/common/manualroute b/modules/exim/files/common/manualroute
deleted file mode 100644 (file)
index 720c6f5..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-## Format:
-## domain: hostname[::port] options
-## example:
-## buildd.debian.org: raff.debian.org::587 byname
diff --git a/modules/exim/files/per-host/draghi.debian.org/manualroute b/modules/exim/files/per-host/draghi.debian.org/manualroute
deleted file mode 100644 (file)
index 68fceb6..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-## Format:
-## domain: hostname[::port] options
-## example:
-## buildd.debian.org: raff.debian.org::587 byname
-
-ancina.debian.org:             ancina.debian.org::2025
-arcadelt.debian.org:           arcadelt.debian.org::25
-argento.debian.org:            argento.debian.org::25
-brahms.debian.org:             brahms.debian.org::25
-goedel.debian.org:             goedel.debian.org::25
-goetz.debian.org:              goetz.debian.org::25
-kassia.debian.org:             kassia.debian.org::587
-lafayette.debian.org:          lafayette.debian.org::25
-lebrun.debian.org:             lebrun.debian.org::25
-malo.debian.org:               malo.debian.org::25
-mayer.debian.org:              mayer.debian.org::25
-murphy.debian.org:             murphy.debian.org::25
-paer.debian.org:               paer.debian.org::25
-piatti.debian.org:             piatti.debian.org::2025
-praetorius.debian.org:         praetorius.debian.org::25
-puccini.debian.org:            puccini.debian.org::25
-rem.debian.org:                        rem.debian.org::25
-schroeder.debian.org:          schroeder.debian.org::25
-spontini.debian.org:           spontini.debian.org::25
diff --git a/modules/exim/files/per-host/luchesi.debian.org/manualroute b/modules/exim/files/per-host/luchesi.debian.org/manualroute
deleted file mode 100644 (file)
index 25d052e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-## Format:
-## domain: hostname[::port] options
-## example:
-## buildd.debian.org: raff.debian.org::587 byname
-
-finzi.debian.org:          [172.17.12.2]::25
-fano.debian.org:          [172.17.12.3]::25
diff --git a/modules/exim/files/per-host/spohr.debian.org/manualroute b/modules/exim/files/per-host/spohr.debian.org/manualroute
deleted file mode 100644 (file)
index 68fceb6..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-## Format:
-## domain: hostname[::port] options
-## example:
-## buildd.debian.org: raff.debian.org::587 byname
-
-ancina.debian.org:             ancina.debian.org::2025
-arcadelt.debian.org:           arcadelt.debian.org::25
-argento.debian.org:            argento.debian.org::25
-brahms.debian.org:             brahms.debian.org::25
-goedel.debian.org:             goedel.debian.org::25
-goetz.debian.org:              goetz.debian.org::25
-kassia.debian.org:             kassia.debian.org::587
-lafayette.debian.org:          lafayette.debian.org::25
-lebrun.debian.org:             lebrun.debian.org::25
-malo.debian.org:               malo.debian.org::25
-mayer.debian.org:              mayer.debian.org::25
-murphy.debian.org:             murphy.debian.org::25
-paer.debian.org:               paer.debian.org::25
-piatti.debian.org:             piatti.debian.org::2025
-praetorius.debian.org:         praetorius.debian.org::25
-puccini.debian.org:            puccini.debian.org::25
-rem.debian.org:                        rem.debian.org::25
-schroeder.debian.org:          schroeder.debian.org::25
-spontini.debian.org:           spontini.debian.org::25
index 6861b44..1bee232 100644 (file)
@@ -28,8 +28,7 @@ class exim {
         ;
         "/etc/exim4/manualroute":
           require => Package["exim4-daemon-heavy"],
-          source  => [ "puppet:///exim/per-host/$fqdn/manualroute",
-                       "puppet:///exim/common/manualroute" ]
+          content => template("exim/manualroute.erb")
           ;
         "/etc/exim4/host_blacklist":
           require => Package["exim4-daemon-heavy"],
diff --git a/modules/exim/templates/manualroute.erb b/modules/exim/templates/manualroute.erb
new file mode 100644 (file)
index 0000000..770e954
--- /dev/null
@@ -0,0 +1,39 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+## Format:
+## domain: hostname[::port] options
+## example:
+## buildd.debian.org: raff.debian.org::587 byname
+
+<%=
+routes = case fqdn
+        when 'spohr.debian.org', 'draghi.debian.org' then '
+ancina.debian.org:              ancina.debian.org::2025
+arcadelt.debian.org:            arcadelt.debian.org::25
+argento.debian.org:             argento.debian.org::25
+brahms.debian.org:              brahms.debian.org::25
+goedel.debian.org:              goedel.debian.org::25
+goetz.debian.org:               goetz.debian.org::25
+kassia.debian.org:              kassia.debian.org::587
+lafayette.debian.org:           lafayette.debian.org::25
+lebrun.debian.org:              lebrun.debian.org::25
+malo.debian.org:                malo.debian.org::25
+mayer.debian.org:               mayer.debian.org::25
+murphy.debian.org:              murphy.debian.org::25
+paer.debian.org:                paer.debian.org::25
+piatti.debian.org:              piatti.debian.org::2025
+praetorius.debian.org:          praetorius.debian.org::25
+puccini.debian.org:             puccini.debian.org::25
+rem.debian.org:                 rem.debian.org::25
+schroeder.debian.org:           schroeder.debian.org::25
+spontini.debian.org:            spontini.debian.org::25
+'
+        when 'luchesi.debian.org' then '
+finzi.debian.org:          [172.17.12.2]::25
+fano.debian.org:           [172.17.12.3]::25
+'
+end
+routes
+%>