X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8dbaa3015b3375af96d772157adbd88659002b49..bd2c6e857ae00b3df208280e81f4f7e7a9a503dd:/cookbooks/imagery/resources/site.rb diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index ea5884563..84151ae66 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -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