]> 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 a0b81bb40390663ba7dd2825e5979de7419ae318..b1420734da893c067497174df1144016e25426b4 100644 (file)
@@ -67,6 +67,12 @@ template "/srv/stats.openstreetmap.org/index.html" do
   variables :sites => node[:stats][:sites]
 end
 
   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"
 apache_site "stats.openstreetmap.org" do
   template "apache.erb"
   directory "/srv/stats.openstreetmap.org"