From: Peter Palfrader Date: Sun, 22 Sep 2019 09:18:09 +0000 (+0200) Subject: Have the nagios-server export an smtp-allow rule to the mail satellites X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=767d38c3ae4b2156deb449f7f6e030f682aaa324;p=mirror%2Fdsa-puppet.git Have the nagios-server export an smtp-allow rule to the mail satellites --- diff --git a/modules/nagios/manifests/server.pp b/modules/nagios/manifests/server.pp index 2e7b1eba0..4db55d98b 100644 --- a/modules/nagios/manifests/server.pp +++ b/modules/nagios/manifests/server.pp @@ -162,4 +162,11 @@ 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, + } }