]> git.openstreetmap.org Git - chef.git/commitdiff
Switch to the Mapbox OSM instance
authorTom Hughes <tom@compton.nu>
Mon, 11 Jan 2016 19:07:48 +0000 (19:07 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 11 Jan 2016 19:07:48 +0000 (19:07 +0000)
cookbooks/web/definitions/rails_port.rb
cookbooks/web/recipes/rails.rb

index f0dd581d8144f6337361651048e58c17e8e3eef3..f3d89d0577a30cf8152c9732cdb515e3267c9591 100644 (file)
@@ -164,6 +164,10 @@ define :rails_port, :action => [:create, :enable] do
       line.gsub!(/^( *)nominatim_url:.*$/, "\\1nominatim_url: \"#{params[:nominatim_url]}\"")
     end
 
+    if params[:osrm_url]
+      line.gsub!(/^( *)osrm_url:.*$/, "\\1osrm_url: \"#{params[:osrm_url]}\"")
+    end
+
     if params[:google_auth_id]
       line.gsub!(/^( *)#google_auth_id:.*$/, "\\1google_auth_id: \"#{params[:google_auth_id]}\"")
       line.gsub!(/^( *)#google_auth_secret:.*$/, "\\1google_auth_secret: \"#{params[:google_auth_secret]}\"")
index 632a627cc2d5b692eaaed70a0999866c12006df6..47010c722763f2dcab7b29708046c0356b381a95 100644 (file)
@@ -77,6 +77,7 @@ rails_port "www.openstreetmap.org" do
   windowslive_auth_id "0000000040153C51"
   windowslive_auth_secret web_passwords["windowslive_auth_secret"]
   mapzen_valhalla_key web_passwords["mapzen_valhalla_key"]
+  osrm_url "//api-osrm-routed-production.tilestream.net/viaroute"
 end
 
 package "libjson-xs-perl"