eximconf: flag mail claiming to be from Debian's webmail administrators
[mirror/dsa-puppet.git] / modules / nagios / manifests / server.pp
index 2e7b1eb..a67e17e 100644 (file)
@@ -162,4 +162,18 @@ class nagios::server {
     target  => '/etc/nagios/nrpe.d/debianorg.cfg',
     content => "allowed_hosts=${ $base::public_addresses.join(', ') }",
   }
+  # and we want to monitor smtp servers
+  @@ferm::rule::simple { "dsa-smtp-from-nagios-${::fqdn}":
+    tag         => 'smtp::server::to::mail-satellite',
+    description => 'Allow smtp access from the nagios server',
+    port        => '7', # will be overwritten on collection
+    saddr       => $base::public_addresses,
+  }
+  # and we want to monitor ssh
+  @@ferm::rule::simple { "dsa-ssh-from-nagios-${::fqdn}":
+    tag         => 'ssh::server::from::nagios',
+    description => 'Allow ssh access from the nagios server',
+    chain       => 'ssh',
+    saddr       => $base::public_addresses,
+  }
 }