From fe3de874ea6721e409f3aa00e123bfe763b5455b Mon Sep 17 00:00:00 2001 From: Nate Riffe Date: Thu, 12 Feb 2015 20:33:22 -0600 Subject: [PATCH] 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 --- manifests/init.pp | 12 ++++++------ templates/named.conf.erb | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 46b6eec..6257df6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,12 +1,12 @@ # ex: syntax=puppet si ts=4 sw=4 et class bind ( - $confdir = undef, - $cachedir = undef, - $forwarders = undef, - $dnssec = undef, - $version = undef, - $rndc = undef, + $confdir = undef, + $cachedir = undef, + $forwarders = undef, + $dnssec = undef, + $version = undef, + $rndc = undef, $statistics_port = undef, ) { include params diff --git a/templates/named.conf.erb b/templates/named.conf.erb index 7033294..8fc1044 100644 --- a/templates/named.conf.erb +++ b/templates/named.conf.erb @@ -2,8 +2,8 @@ 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; }; };