]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Put the bsmtp file under puppet
authorStephen Gran <steve@lobefin.net>
Sun, 21 Jun 2009 16:29:22 +0000 (17:29 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 21 Jun 2009 16:29:22 +0000 (17:29 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/exim/manifests/init.pp
modules/exim/templates/bsmtp.erb [new file with mode: 0644]

index a8868507ddc4670d4431d1c2ad037a7eea719e26..7b446db0afc3f5ded378ccf8e1350e00e3469583 100644 (file)
@@ -47,6 +47,10 @@ class exim {
           source  => [ "puppet:///exim/per-host/$fqdn/helo-check",
                        "puppet:///exim/common/helo-check" ]
           ;
+        "/etc/exim4/bsmtp":
+          require => Package["exim4-daemon-heavy"],
+          content => template("exim/bsmtp.erb")
+          ;
         "/etc/exim4/locals":
           require => Package["exim4-daemon-heavy"],
           content => template("exim/locals.erb")
diff --git a/modules/exim/templates/bsmtp.erb b/modules/exim/templates/bsmtp.erb
new file mode 100644 (file)
index 0000000..4ccd9f4
--- /dev/null
@@ -0,0 +1,24 @@
+##
+## 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
+##
+
+<%=
+bsmtp = case fqdn
+        when "gluck.debian.org" then "hal.debian.net: user=salve group=Debian file=/home/salve/bsmtp/hal.debian.net
+salve.debian.net: user=salve group=Debian file=/home/salve/bsmtp/salve.debian.net
+robin.debian.net: user=robert group=Debian file=/home/robert/bsmtp/robin.debian.net
+riva.debian.net: user=cjwatson group=Debian file=/home/cjwatson/bsmtp/riva.debian.net
+tryphon.debian.net: user=nboullis group=Debian file=/home/nboullis/bsmtp/tryphon.debian.net
+lucretia.debian.net: user=mechanix group=Debian file=/home/mechanix/bsmtp/lucretia.debian.net
+aegir.debian.net: user=mechanix group=Debian file=/home/mechanix/bsmtp/aegir.debian.net"
+        when "klecker.debian.org" then "hal.debian.net: user=salve group=Debian file=/home/salve/bsmtp/hal.debian.net
+salve.debian.net: user=salve group=Debian file=/home/salve/bsmtp/salve.debian.net
+robin.debian.net: user=robert group=Debian file=/home/robert/bsmtp/robin.debian.net
+riva.debian.net: user=cjwatson group=Debian file=/home/cjwatson/bsmtp/riva.debian.net
+tryphon.debian.net: user=nboullis group=Debian file=/home/nboullis/bsmtp/tryphon.debian.net
+lucretia.debian.net: user=mechanix group=Debian file=/home/mechanix/bsmtp/lucretia.debian.net
+aegir.debian.net: user=mechanix group=Debian file=/home/mechanix/bsmtp/aegir.debian.net"
+end
+bsmtp
+%>