statistics channel can optinally be enabled

This commit is contained in:
Tilo Klausing 2015-01-12 14:41:56 +01:00
parent 2a3033dedb
commit fe0a845f65
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class bind (
$dnssec = undef,
$version = undef,
$rndc = undef,
$statistics_port = undef,
) {
include params

View File

@ -3,6 +3,12 @@ include "<%= @confdir %>/acls.conf";
include "<%= @confdir %>/keys.conf";
include "<%= @confdir %>/views.conf";
<%- if @statistics_port -%>
statistics-channels {
inet 127.0.0.1 port <%= @statistics_port %> allow { 127.0.0.1; };
};
<%- end -%>
options {
directory "<%= @cachedir %>";
<%- if @forwarders and @forwarders != '' -%>