From 5c60e49a96fe718a8bb84c957c1715184ee65749 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 20 Sep 2019 20:49:15 +0200 Subject: [PATCH] And allow nrpe from the dns master --- modules/roles/manifests/dns_primary.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/roles/manifests/dns_primary.pp b/modules/roles/manifests/dns_primary.pp index 422db0df8..8dd0f0055 100644 --- a/modules/roles/manifests/dns_primary.pp +++ b/modules/roles/manifests/dns_primary.pp @@ -58,4 +58,9 @@ class roles::dns_primary( port => '5666', saddr => $base::public_addresses, } + @@concat::fragment { "nrpe-debian-allow-${::fqdn}": + tag => 'nagios-nrpe::server::debianorg.cfg', + target => '/etc/nagios/nrpe.d/debianorg.cfg', + content => "allowed_hosts=${ $base::public_addresses.join(', ') }", + } } -- 2.20.1