From: Tom Hughes Date: Thu, 8 Sep 2016 15:18:45 +0000 (+0100) Subject: Configure the thunderforest API key X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b732630796db2a16c2183e261ebf321ac9bfd416 Configure the thunderforest API key --- 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") diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index a388b2159..52aa09625 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -79,6 +79,7 @@ rails_port "www.openstreetmap.org" do github_auth_id "acf7da34edee99e35499" github_auth_secret web_passwords["github_auth_secret"] mapzen_valhalla_key web_passwords["mapzen_valhalla_key"] + thunderforest_key web_passwords["thunderforest_key"] end package "libjson-xs-perl"