]> git.openstreetmap.org Git - chef.git/commitdiff
Configure the thunderforest API key
authorTom Hughes <tom@compton.nu>
Thu, 8 Sep 2016 15:18:45 +0000 (16:18 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 8 Sep 2016 15:18:45 +0000 (16:18 +0100)
cookbooks/web/definitions/rails_port.rb
cookbooks/web/recipes/rails.rb

index c23587dd989b06174973b764e1da4d1ee36dacb8..dc39d44573251a744fbb6bfc2b814ee1e7fe2641 100644 (file)
@@ -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")
 
index a388b21595f6fa74f66e54f0811306d16899570e..52aa09625c447bcd3377025ea4f3e742d84f3e2b 100644 (file)
@@ -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"