X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ece798d8eac3bf2d874e3ab6300de2941981fc03..025f05041c746a1602697d2edce62ed75eac6df9:/cookbooks/taginfo/recipes/default.rb diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index d6c0dd53b..a0a409196 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -35,8 +35,9 @@ package "make" package "g++" package "sqlite3" - package "osmosis" +package "curl" +package "subversion" package "ruby" package "rubygems" @@ -46,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" @@ -59,11 +63,8 @@ directory "/var/log/taginfo" do mode 0755 end -template "/etc/logrotate.d/taginfo" do - source "logrotate.erb" - owner "root" - group "root" - mode 0644 +file "/etc/logrotate.d/taginfo" do + action :delete end node[:taginfo][:sites].each do |site| @@ -88,7 +89,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 @@ -96,7 +97,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 @@ -230,7 +231,7 @@ node[:taginfo][:sites].each do |site| owner "taginfo" group "taginfo" mode 0755 - variables :directory => directory + variables :name => name, :directory => directory end apache_site name do