Make a couple of formatting changes
* Line up the parameter defaults in init.pp * Put the leading whitespace ahead of the statistics-channel conditional block inside the condition to avoid superfluous blank lines in the generated file
This commit is contained in:
parent
fe0a845f65
commit
fe3de874ea
@ -1,12 +1,12 @@
|
|||||||
# ex: syntax=puppet si ts=4 sw=4 et
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
class bind (
|
class bind (
|
||||||
$confdir = undef,
|
$confdir = undef,
|
||||||
$cachedir = undef,
|
$cachedir = undef,
|
||||||
$forwarders = undef,
|
$forwarders = undef,
|
||||||
$dnssec = undef,
|
$dnssec = undef,
|
||||||
$version = undef,
|
$version = undef,
|
||||||
$rndc = undef,
|
$rndc = undef,
|
||||||
$statistics_port = undef,
|
$statistics_port = undef,
|
||||||
) {
|
) {
|
||||||
include params
|
include params
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
include "<%= @confdir %>/acls.conf";
|
include "<%= @confdir %>/acls.conf";
|
||||||
include "<%= @confdir %>/keys.conf";
|
include "<%= @confdir %>/keys.conf";
|
||||||
include "<%= @confdir %>/views.conf";
|
include "<%= @confdir %>/views.conf";
|
||||||
|
|
||||||
<%- if @statistics_port -%>
|
<%- if @statistics_port -%>
|
||||||
|
|
||||||
statistics-channels {
|
statistics-channels {
|
||||||
inet 127.0.0.1 port <%= @statistics_port %> allow { 127.0.0.1; };
|
inet 127.0.0.1 port <%= @statistics_port %> allow { 127.0.0.1; };
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user