]> git.openstreetmap.org Git - chef.git/commitdiff
Enable wikimedia authentication
authorTom Hughes <tom@compton.nu>
Wed, 21 Dec 2016 12:37:04 +0000 (12:37 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 21 Dec 2016 12:37:04 +0000 (12:37 +0000)
cookbooks/web/definitions/rails_port.rb
cookbooks/web/recipes/rails.rb

index 6773cf9741e76d5f984b98fc51b3d5fb13e703ab..75d22d271164c53ba454aa391e73676ea0d95280 100644 (file)
@@ -187,6 +187,11 @@ define :rails_port, :action => [:create, :enable] do
       line.gsub!(/^( *)#github_auth_secret:.*$/, "\\1github_auth_secret: \"#{params[:github_auth_secret]}\"")
     end
 
+    if params[:wikipedia_auth_id]
+      line.gsub!(/^( *)#wikipedia_auth_id:.*$/, "\\1wikipedia_auth_id: \"#{params[:wikipedia_auth_id]}\"")
+      line.gsub!(/^( *)#wikipedia_auth_secret:.*$/, "\\1wikipedia_auth_secret: \"#{params[:wikipedia_auth_secret]}\"")
+    end
+
     if params[:mapquest_key]
       line.gsub!(/^( *)#mapquest_key:.*$/, "\\1mapquest_key: \"#{params[:mapquest_key]}\"")
     end
index 7945d3d0394245e960990182696c8a9fe8aa7779..d58026ca348238cf91e5121321554d10e35bf48d 100644 (file)
@@ -76,6 +76,8 @@ rails_port "www.openstreetmap.org" do
   windowslive_auth_secret web_passwords["windowslive_auth_secret"]
   github_auth_id "acf7da34edee99e35499"
   github_auth_secret web_passwords["github_auth_secret"]
+  wikipedia_auth_id "e4fe0c2c5855d23ed7e1f1c0fa1f1c58"
+  wikipedia_auth_secret web_passwords["wikipedia_auth_secret"]
   mapzen_valhalla_key web_passwords["mapzen_valhalla_key"]
   thunderforest_key web_passwords["thunderforest_key"]
 end