]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
add start of a postfix module to hang firewall rules/monitoring/etc off
authorStephen Gran <steve@lobefin.net>
Sun, 22 Apr 2012 18:58:55 +0000 (19:58 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 22 Apr 2012 18:58:55 +0000 (19:58 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
manifests/site.pp
modules/ferm/manifests/per-host.pp
modules/postfix/manifests/init.pp [new file with mode: 0644]

index bec319b45644ae51dc6308f6f62f91a650867c36..18e237725243f0cbf1eab1380fb31c077b932e8b 100644 (file)
@@ -52,6 +52,8 @@ node default {
                } else {
                        include exim
                }
+       } elsif $::hostname == 'bendel' {
+               include postfix
        }
 
        if $::lsbdistcodename != 'lenny' {
index 5a99b14f01fb2132c1bae2fa4df31fddaaea2f50..9f642cae20baa044ca543158f7721b7c81d8b846 100644 (file)
@@ -91,13 +91,6 @@ class ferm::per-host {
                                rule            => '&SERVICE(tcp, 6523)'
                        }
                }
-               bendel: {
-                       @ferm::rule { 'smtp':
-                               domain          => '(ip ip6)',
-                               description     => 'Allow smtp access',
-                               rule            => '&SERVICE(tcp, 25)'
-                       }
-               }
                draghi: {
                        #@ferm::rule { 'dsa-bind':
                        #    domain          => '(ip ip6)',
diff --git a/modules/postfix/manifests/init.pp b/modules/postfix/manifests/init.pp
new file mode 100644 (file)
index 0000000..0d10b4e
--- /dev/null
@@ -0,0 +1,17 @@
+class postfix {
+       munin::check { 'ps_exim4':       ensure => absent }
+       munin::check { 'exim_mailqueue': ensure => absent }
+       munin::check { 'exim_mailstats': ensure => absent }
+
+       munin::check { 'postfix_mailqueue': }
+       munin::check { 'postfix_mailstats': }
+       munin::check { 'postfix_mailvolume': }
+       munin::check { 'ps_smtp': script => 'ps_' }
+       munin::check { 'ps_smtpd': script => 'ps_' }
+
+       @ferm::rule {
+               domain      => '(ip ip6)',
+               description => 'Allow smtp access',
+               rule        => '&SERVICE(tcp, 25)'
+       }
+}