generate ula zone
This commit is contained in:
parent
d9e3924731
commit
5140dba6f4
@ -20,6 +20,10 @@ def main
|
|||||||
Lxc::RdnsZone.new(registry.data, subnet).write_zone_file(root_path)
|
Lxc::RdnsZone.new(registry.data, subnet).write_zone_file(root_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if subnet = registry.data["zone"]["ula_subnet"]
|
||||||
|
Lxc::RdnsZone.new(registry.data, subnet).write_zone_file(root_path)
|
||||||
|
end
|
||||||
|
|
||||||
root_path = Pathname.new(File.expand_path("../..", __FILE__))
|
root_path = Pathname.new(File.expand_path("../..", __FILE__))
|
||||||
zone_template = Lxc::Template.new(root_path.join("hooks/templates/lxc-zone.erb"))
|
zone_template = Lxc::Template.new(root_path.join("hooks/templates/lxc-zone.erb"))
|
||||||
zone = registry.data["zone"] || {}
|
zone = registry.data["zone"] || {}
|
||||||
|
Loading…
Reference in New Issue
Block a user