Updated all templates to use instance variables
This commit is contained in:
parent
a0c854d3c0
commit
dc51af1ca2
113 changed files with 527 additions and 522 deletions
|
@ -1,18 +1,18 @@
|
|||
key "<%= zone %>" {
|
||||
algorithm <%= keytype %>;
|
||||
secret "<%= key %>";
|
||||
key "<%= @zone %>" {
|
||||
algorithm <%= @keytype %>;
|
||||
secret "<%= @key %>";
|
||||
};
|
||||
|
||||
zone "<%= zone %>" {
|
||||
zone "<%= @zone %>" {
|
||||
type master;
|
||||
<% if zone.match(/\//) -%>
|
||||
file "<%= zonedir %>/db.<%= zone.sub(/\//, '-') %>";
|
||||
<% if @zone.match(/\//) -%>
|
||||
file "<%= @zonedir %>/db.<%= @zone.sub(/\//, '-') %>";
|
||||
<% else -%>
|
||||
file "<%= zonedir %>/db.<%= zone %>";
|
||||
file "<%= @zonedir %>/db.<%= @zone %>";
|
||||
<% end -%>
|
||||
allow-transfer {
|
||||
<% if slaves != [] -%>
|
||||
<% slaves.each_pair do |k, v| -%>
|
||||
<% if @slaves != [] -%>
|
||||
<% @slaves.each_pair do |k, v| -%>
|
||||
<%= v['ip'] %>;
|
||||
<% end -%>
|
||||
<% else -%>
|
||||
|
@ -20,6 +20,6 @@ zone "<%= zone %>" {
|
|||
<% end -%>
|
||||
};
|
||||
allow-update {
|
||||
key <%= zone %>;
|
||||
key <%= @zone %>;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue