X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/911c341fc1a9c341fe1aadfcdf6ce32864180ae7..bd2c6e857ae00b3df208280e81f4f7e7a9a503dd:/cookbooks/imagery/resources/site.rb diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index a2c94b953..84151ae66 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -62,11 +62,21 @@ action :create do mode 0644 end - layers = Dir.glob("/srv/imagery/layers/#{name}/*.yml").collect do |path| - YAML.load(::File.read(path)) + cookbook_file "/srv/#{name}/clientaccesspolicy.xml" do + source "clientaccesspolicy.xml" + user "root" + group "root" + mode 0644 end - overlays = Dir.glob("/srv/imagery/overlays/#{name}/*.yml").collect do |path| + 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 @@ -75,7 +85,7 @@ action :create do user "root" group "root" mode 0644 - variables :bbox => bbox, :layers => layers, :overlays => overlays + variables :bbox => bbox, :layers => layers end nginx_site name do @@ -87,5 +97,5 @@ action :create do end def after_created - notifies :restart, "service[nginx]" + notifies :reload, "service[nginx]" end