X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2a77f46be65691b76d8ef69b074872ac3ee03356..1f960fa38137e62994de9906f855eae3b64a4db6:/cookbooks/web/definitions/rails_port.rb diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index dcee9cbfe..49d989ff3 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -184,6 +184,10 @@ define :rails_port, :action => [:create, :enable] do line.gsub!(/^( *)#log_path:.*$/, "\\1log_path: \"#{params[:log_path]}\"") end + if params[:logstash_path] + line.gsub!(/^( *)#logstash_path:.*$/, "\\1logstash_path: \"#{params[:logstash_path]}\"") + end + if params[:memcache_servers] line.gsub!(/^( *)#memcache_servers:.*$/, "\\1memcache_servers: [ \"#{params[:memcache_servers].join("\", \"")}\" ]") end @@ -231,7 +235,7 @@ define :rails_port, :action => [:create, :enable] do group rails_group mode 0664 content application_yml - notifies :run, "execute[#{rails_directory}]" + notifies :run, "execute[#{rails_directory}/public/assets]" end if params[:piwik_configuration]