Switch web site to use MapQuest Nominatim for search
[chef.git] / cookbooks / web / definitions / rails_port.rb
index 1d9179aa9ea5819a8cf052d648389f67703b9396..6b77fd441b5b6ab700676e1ba644a5caf99d90ea 100644 (file)
@@ -203,6 +203,10 @@ define :rails_port, :action => [ :create, :enable ] do
       line.gsub!(/^( *)#oauth_key:.*$/, "\\1oauth_key: \"#{params[:oauth_key]}\"")
     end
 
+    if params[:nominatim_url]
+      line.gsub!(/^( *)nominatim_url:.*$/, "\\1nominatim_url: \"#{params[:nominatim_url]}\"")
+    end
+
     line.gsub!(/^( *)require_terms_seen:.*$/, "\\1require_terms_seen: true")
     line.gsub!(/^( *)require_terms_agreed:.*$/, "\\1require_terms_agreed: true")