X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fdns_primary.pp;h=8dd0f00557e9c61b29770781f9776a6abff15583;hb=6f0519ea008323e67f933fd1168c6c906f2c289d;hp=d846c1b1fc9e9d26e74f67ed14a6ee08cdb47d29;hpb=8ee003072307afcb91fece6b33547dff08301e76;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/dns_primary.pp b/modules/roles/manifests/dns_primary.pp index d846c1b1f..8dd0f0055 100644 --- a/modules/roles/manifests/dns_primary.pp +++ b/modules/roles/manifests/dns_primary.pp @@ -51,4 +51,16 @@ class roles::dns_primary( } Ferm::Rule::Simple <<| tag == 'named::primary::ferm' |>> + # mini-nag does nrpe queries to check if hosts are still up + @@ferm::rule::simple { "dsa-nrpe-from-dnsprimary-${::fqdn}": + tag => 'nagios-nrpe::server', + description => 'Allow dns primary running mini-nag access to the nrpe daemon', + 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(', ') }", + } }