X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d5e6ae801dfff473efe2701e560442d21289c549..bd2c6e857ae00b3df208280e81f4f7e7a9a503dd:/cookbooks/imagery/resources/site.rb?ds=sidebyside diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index 2cf26011c..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 @@ -83,5 +97,5 @@ action :create do end def after_created - notifies :restart, "service[nginx]" + notifies :reload, "service[nginx]" end