+
+ # firewalling
+ ferm::rule::simple { 'dns-from-secondaries':
+ description => 'Allow additional (such as 3rd party secondary nameserver) access to the primary',
+ proto => ['udp', 'tcp'],
+ port => 'domain',
+ saddr => $allow_access,
+ }
+ 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(', ') }",
+ }