X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a73a91f6e5b506d8db04fb1c1e82840512a7dcde..b732630796db2a16c2183e261ebf321ac9bfd416:/cookbooks/web/definitions/rails_port.rb diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index c23587dd9..dc39d4457 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -197,6 +197,10 @@ define :rails_port, :action => [:create, :enable] do line.gsub!(/^( *)#mapzen_valhalla_key:.*$/, "\\1mapzen_valhalla_key: \"#{params[:mapzen_valhalla_key]}\"") end + if params[:thunderforest_key] + line.gsub!(/^( *)#thunderforest_key:.*$/, "\\1thunderforest_key: \"#{params[:thunderforest_key]}\"") + end + line.gsub!(/^( *)require_terms_seen:.*$/, "\\1require_terms_seen: true") line.gsub!(/^( *)require_terms_agreed:.*$/, "\\1require_terms_agreed: true")