zones = Array.new
-Dir.glob("/var/lib/dns/kml/*.kml").each do |kmlfile|
- zone = File.basename(kmlfile, ".kml")
+Dir.glob("/var/lib/dns/json/*.json").each do |kmlfile|
+ zone = File.basename(kmlfile, ".json")
template "/srv/dns.openstreetmap.org/html/#{zone}.html" do
source "zone.html.erb"
owner "git"
group "git"
mode 02775
- notifies :run, resources(:execute => "dns-update")
+ notifies :run, "execute[dns-update]"
end
cookbook_file "#{node[:dns][:repository]}/hooks/post-receive" do