]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/resources/site.rb
imagery: add clientaccesspolicy.xml + crossdomain.xml
[chef.git] / cookbooks / imagery / resources / site.rb
index ea5884563aa22985f90f003626a32f2f21bcb5df..84151ae66e17a752a6eba0011c2943a21a0a1e28 100644 (file)
@@ -62,6 +62,20 @@ action :create do
     mode 0644
   end
 
+  cookbook_file "/srv/#{name}/clientaccesspolicy.xml" do
+    source "clientaccesspolicy.xml"
+    user "root"
+    group "root"
+    mode 0644
+  end
+
+  cookbook_file "/srv/#{name}/crossdomain.xml" do
+    source "crossdomain.xml"
+    user "root"
+    group "root"
+    mode 0644
+  end
+
   layers = Dir.glob("/srv/imagery/layers/#{name}/*.yml").collect do |path|
     YAML.load(::File.read(path))
   end