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
user "root"
group "root"
mode 0644
- variables :bbox => bbox, :layers => layers, :overlays => overlays
+ variables :bbox => bbox, :layers => layers
end
nginx_site name do
end
def after_created
- notifies :restart, "service[nginx]"
+ notifies :reload, "service[nginx]"
end