]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/recipes/default.rb
Enable caching for certain taginfo responses
[chef.git] / cookbooks / taginfo / recipes / default.rb
index 9013c33ae2db0ec22194e3ec9717dd04f01e7cd8..e0b6d34c24843be9cf089a93fb3f83c00fe706b1 100644 (file)
@@ -47,6 +47,9 @@ gem_package "sinatra"
 gem_package "sinatra-r18n"
 gem_package "rack-contrib"
 
+apache_module "cache"
+apache_module "disk_cache"
+
 template "/etc/cron.d/taginfo" do
   source "cron.erb"
   owner "root"
@@ -89,7 +92,7 @@ node[:taginfo][:sites].each do |site|
   git "#{directory}/osmium" do
     action :sync
     repository "git://github.com/joto/osmium.git"
-    revision "master"
+    revision "osmorg-taginfo-live"
     user "taginfo"
     group "taginfo"
   end
@@ -97,7 +100,7 @@ node[:taginfo][:sites].each do |site|
   git "#{directory}/taginfo" do
     action :sync
     repository "git://github.com/joto/taginfo.git"
-    revision "master"
+    revision "osmorg-taginfo-live"
     user "taginfo"
     group "taginfo"
   end