X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..a08c8d97d5cd3666799fb3bef14618d4c7c23398:/cookbooks/imagery/resources/site.rb diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index 711ae3e50..e64231a72 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -19,12 +19,14 @@ require "yaml" +unified_mode true + default_action :create property :site, String, :name_property => true -property :title, String, :required => true +property :title, String, :required => [:create] property :aliases, [String, Array], :default => [] -property :bbox, Array, :required => true +property :bbox, Array, :required => [:create] action :create do directory "/srv/#{new_resource.site}" do @@ -107,7 +109,8 @@ action :create do "GDAL_CACHEMAX" => "512" limit_nofile 16384 limit_cpu 180 - memory_max "4G" + memory_high "512M" + memory_max "1G" user "imagery" group "imagery" exec_start_pre "/bin/rm -f /run/mapserver-fastcgi/layer-#{new_resource.site}-#{index}.socket"