Switch nrpe allow-config to store/collect
[mirror/dsa-puppet.git] / modules / nagios / manifests / server.pp
index fc222ae..06cd0ee 100644 (file)
@@ -153,4 +153,9 @@ class nagios::server {
     port        => '5666',
     saddr       => $base::public_addresses,
   }
+  @@concat { "nrpe-debian-allow-${::fqdn}":
+    tag     => 'nagios-nrpe::server::debianorg.cfg',
+    target  => '/etc/nagios/nrpe.d/debianorg.cfg',
+    content => "allowed_hosts=${ $base::public_addresses.join(', ') }",
+  }
 }