Add acls
This commit is contained in:
parent
e575d3a8b7
commit
259e37c795
11
manifests/acl.pp
Normal file
11
manifests/acl.pp
Normal 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
5
templates/acl.erb
Normal file
@ -0,0 +1,5 @@
|
||||
acl <%= name %> {
|
||||
<%- addresses.each |address| do %>
|
||||
<%= address %>;
|
||||
<%- end %>
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user