--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<access-policy>
+ <cross-domain-access>
+ <policy>
+ <allow-from http-request-headers="*">
+ <domain uri="*"/>
+ </allow-from>
+ <grant-to>
+ <resource path="/" include-subpaths="true"/>
+ </grant-to>
+ </policy>
+ </cross-domain-access>
+</access-policy>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
+<cross-domain-policy>
+ <allow-access-from domain="*"/>
+</cross-domain-policy>
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