]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/resources/site.rb
Allow AF_UNIX sockets for cgimap
[chef.git] / cookbooks / imagery / resources / site.rb
index 41a54b51739d3cf141322b4379193809ee6d9565..b5d50ee349bf992ae1eb93446972ebbd4336b499 100644 (file)
@@ -86,7 +86,7 @@ action :create do
   end
 
   layers = Dir.glob("/srv/imagery/layers/#{new_resource.site}/*.yml").collect do |path|
   end
 
   layers = Dir.glob("/srv/imagery/layers/#{new_resource.site}/*.yml").collect do |path|
-    YAML.safe_load(::File.read(path), [Symbol])
+    YAML.safe_load(::File.read(path), :permitted_classes => [Symbol])
   end
 
   declare_resource :template, "/srv/#{new_resource.site}/imagery.js" do
   end
 
   declare_resource :template, "/srv/#{new_resource.site}/imagery.js" do