build-split-zone: write to correct directory

This commit is contained in:
Jörg Thalheim 2015-08-11 21:39:00 +00:00
parent 4db49de2d9
commit 18e8a6e39f

View File

@ -41,9 +41,9 @@ template = Lxc::Template.new(template_path)
serial = Time.new.to_i
resolver = Resolver.new
zones = [
["zones/higgsboson.tk.zone", :pub],
["zones/internal-eve.higgsboson.tk.zone", :eve],
["zones/internal-eva.higgsboson.tk.zone", :eva],
[Lxc::CONFIG_ROOT.join("zones/higgsboson.tk.zone"), :pub],
[Lxc::CONFIG_ROOT.join("zones/internal-eve.higgsboson.tk.zone"), :eve],
[Lxc::CONFIG_ROOT.join("zones/internal-eva.higgsboson.tk.zone"), :eva],
]
zones.each do |zone, type|
template.write(zone, resolver: resolver, serial: serial, type: type)