From b732630796db2a16c2183e261ebf321ac9bfd416 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 8 Sep 2016 16:18:45 +0100 Subject: [PATCH] Configure the thunderforest API key --- cookbooks/web/definitions/rails_port.rb | 4 ++++ cookbooks/web/recipes/rails.rb | 1 + 2 files changed, 5 insertions(+) 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" -- 2.43.2