Allow override of BIND's version string

This commit is contained in:
Nate Riffe 2012-10-06 10:50:02 -05:00
parent 22e0d2c603
commit fe1ceca8fd
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@ class bind (
$cachedir = $bind::params::cachedir,
$forwarders = [],
$dnssec = true,
$version = '',
) inherits bind::params {
include concat::setup

View File

@ -7,9 +7,9 @@ options {
directory "<%= cachedir %>";
<%- if not forwarders.empty? -%>
forwarders {
<%- forwarders.each do |forwarder| -%>
<%- forwarders.each do |forwarder| -%>
<%= forwarder %>;
<%- end -%>
<%- end -%>
};
<%- end -%>
auth-nxdomain <%= auth_nxdomain ? 'yes' : 'no' %>;
@ -17,4 +17,7 @@ options {
dnssec-enable <%= dnssec ? 'yes' : 'no' %>;
dnssec-validation <%= dnssec ? 'yes' : 'no' %>;
dnssec-lookaside <%= dnssec ? 'auto' : 'no' %>;
<%- if version != '' -%>
version "<%= version %>";
<%- end -%>
};