Commit 84ae7044 authored by Colin Shea's avatar Colin Shea

Revert "switch to generating nsd configuration supplemental file"

This reverts commit 37ea71b6.

We're going back to bind
parent e477cf51
......@@ -19,7 +19,7 @@ class ZoneGenerator
@template_dir = File.expand_path(@config[:templates])
@generated = File.expand_path(@config[:output])
@tmp_nsd_zones = "#{@generated}/nsd_zones.conf"
@tmp_named = "#{@generated}/named.conf"
@tmp_zones = "#{@generated}/zones"
# Rewrite email address
......@@ -34,13 +34,13 @@ class ZoneGenerator
# Generates all zones
def generate
File.open(@tmp_nsd_zones,"w") do |f|
File.open(@tmp_named,"w") do |f|
Dir.glob("#{@zones_dir}/**/*.rb").sort.each do |file|
domain = File.basename(file).sub(/\.rb$/,"")
puts "Generating zone for '#{domain}'"
generate_zone(file, domain)
f.puts %Q{zone:\n name: "#{domain}"\n zonefile: "#{domain}.zone"\n}
f.puts "zone \"#{domain}\" IN { type master; file \"#{@config[:zones_dir]}/#{domain}\"; };"
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment