X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e8ef3727c5fdf30cf4fa76d43ed79c7ae56303df..87a5f38102d7c70052e404469f79cfea608c1363:/cookbooks/web/definitions/rails_port.rb diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index 1d9179aa9..6abec9357 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -46,6 +46,7 @@ define :rails_port, :action => [ :create, :enable ] do package "nodejs" package "g++" + package "pkg-config" package "libpq-dev" package "libsasl2-dev" package "libxml2-dev" @@ -203,6 +204,10 @@ define :rails_port, :action => [ :create, :enable ] do line.gsub!(/^( *)#oauth_key:.*$/, "\\1oauth_key: \"#{params[:oauth_key]}\"") end + if params[:nominatim_url] + line.gsub!(/^( *)nominatim_url:.*$/, "\\1nominatim_url: \"#{params[:nominatim_url]}\"") + end + line.gsub!(/^( *)require_terms_seen:.*$/, "\\1require_terms_seen: true") line.gsub!(/^( *)require_terms_agreed:.*$/, "\\1require_terms_agreed: true")