line.gsub!(/^( *)#quova_password:.*$/, "\\1quova_password: \"#{params[:quova_password]}\"")
end
- if params[:soft_memory_limit]
- line.gsub!(/^( *)#soft_memory_limit:.*$/, "\\1soft_memory_limit: #{params[:soft_memory_limit]}")
- end
-
- if params[:hard_memory_limit]
- line.gsub!(/^( *)#hard_memory_limit:.*$/, "\\1hard_memory_limit: #{params[:hard_memory_limit]}")
- end
-
if params[:gpx_dir]
line.gsub!(/^( *)gpx_trace_dir:.*$/, "\\1gpx_trace_dir: \"#{params[:gpx_dir]}/traces\"")
line.gsub!(/^( *)gpx_image_dir:.*$/, "\\1gpx_image_dir: \"#{params[:gpx_dir]}/images\"")
messages_domain "messages.openstreetmap.org"
quova_username "ws360602"
quova_password web_passwords["quova"]
- soft_memory_limit node[:web][:rails_soft_memory_limit]
- hard_memory_limit node[:web][:rails_hard_memory_limit]
gpx_dir "/store/rails/gpx"
attachments_dir "/store/rails/attachments"
log_path "#{node[:web][:log_directory]}/rails.log"
},
:passenger => {
:max_pool_size => 12
- },
- :web => {
- :rails_soft_memory_limit => 512,
- :rails_hard_memory_limit => 2048
}
)
:passenger => {
:max_pool_size => 50
},
- :web => {
- :rails_soft_memory_limit => 256,
- :rails_hard_memory_limit => 1024
- },
:exim => {
:local_domains => ["messages.openstreetmap.org"],
:trusted_users => ["rails"],