]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/stats/recipes/default.rb
stats: add a robots.txt to get rid of pesky bots
[chef.git] / cookbooks / stats / recipes / default.rb
index 9a977603b7aeaf76cfb1614124169a97b7801eda..b1420734da893c067497174df1144016e25426b4 100644 (file)
@@ -20,6 +20,7 @@
 include_recipe "apache"
 
 package "awstats"
+package "libgeo-ipfree-perl"
 
 node[:stats][:sites].each do |site|
   template "/etc/awstats/awstats.#{site[:name]}.conf" do
@@ -66,6 +67,12 @@ template "/srv/stats.openstreetmap.org/index.html" do
   variables :sites => node[:stats][:sites]
 end
 
+cookbook_file "/srv/stats.openstreetmap.org/robots.txt" do
+  owner "root"
+  group "root"
+  mode 0644
+end
+
 apache_site "stats.openstreetmap.org" do
   template "apache.erb"
   directory "/srv/stats.openstreetmap.org"