Support alternate key directories
This commit is contained in:
parent
42a5e99f87
commit
9d0f03b5f6
@ -5,6 +5,7 @@ define bind::zone (
|
|||||||
$allow_updates = [],
|
$allow_updates = [],
|
||||||
$allow_transfers = [],
|
$allow_transfers = [],
|
||||||
$dnssec = false,
|
$dnssec = false,
|
||||||
|
$key_directory = '',
|
||||||
$ns_notify = true,
|
$ns_notify = true,
|
||||||
$also_notify = [],
|
$also_notify = [],
|
||||||
$allow_notify = [],
|
$allow_notify = [],
|
||||||
|
|||||||
@ -5,7 +5,11 @@ zone "<%= _domain %>" {
|
|||||||
<%- if has_zone_file -%>
|
<%- if has_zone_file -%>
|
||||||
<%- if dnssec -%>
|
<%- if dnssec -%>
|
||||||
auto-dnssec maintain;
|
auto-dnssec maintain;
|
||||||
|
<%- if key_directory == '' -%>
|
||||||
key-directory "<%= cachedir %>/<%= name %>";
|
key-directory "<%= cachedir %>/<%= name %>";
|
||||||
|
<%- else -%>
|
||||||
|
key-directory "<%= key_directory %>";
|
||||||
|
<%- end -%>
|
||||||
file "<%= cachedir %>/<%= name %>/<%= _domain %>.signed";
|
file "<%= cachedir %>/<%= name %>/<%= _domain %>.signed";
|
||||||
<%- else -%>
|
<%- else -%>
|
||||||
file "<%= cachedir %>/<%= name %>/<%= _domain %>";
|
file "<%= cachedir %>/<%= name %>/<%= _domain %>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user