This commit is contained in:
Nate Riffe 2012-09-03 18:24:06 -05:00
parent e575d3a8b7
commit 259e37c795
2 changed files with 16 additions and 0 deletions

11
manifests/acl.pp Normal file
View File

@ -0,0 +1,11 @@
define bind::acl (
$addresses,
) {
concat::fragment { "bind-acl-${name}":
order => '10',
target => "${bind::params::confdir}/acls.conf",
content => template('bind/acl.erb'),
}
}

5
templates/acl.erb Normal file
View File

@ -0,0 +1,5 @@
acl <%= name %> {
<%- addresses.each |address| do %>
<%= address %>;
<%- end %>
};