projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
914585a
)
Have the nagios-server export an smtp-allow rule to the mail satellites
author
Peter Palfrader
<peter@palfrader.org>
Sun, 22 Sep 2019 09:18:09 +0000
(11:18 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Sun, 22 Sep 2019 09:18:09 +0000
(11:18 +0200)
modules/nagios/manifests/server.pp
patch
|
blob
|
history
diff --git
a/modules/nagios/manifests/server.pp
b/modules/nagios/manifests/server.pp
index
2e7b1eb
..
4db55d9
100644
(file)
--- 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,
+ }
}