package "libyaml-perl"
package "libwww-perl"
package "libjson-xs-perl"
-package "liblwp-useragent-determined-perl"
directory "/srv/dns.openstreetmap.org" do
owner "root"
files_mode 0644
end
-zones = Array.new
+zones = []
Dir.glob("/var/lib/dns/json/*.json").each do |kmlfile|
zone = File.basename(kmlfile, ".json")
variables :zones => zones
end
-apache_site "dns.openstreetmap.org" do
+apache_site "dns.openstreetmap.org" do
template "apache.erb"
directory "/srv/dns.openstreetmap.org"
end
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