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
"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"