From b1c6875562edcc58343998c0261cdb996ecea380 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 20 Sep 2013 16:33:09 +0100 Subject: [PATCH] stats: add a robots.txt to get rid of pesky bots --- cookbooks/stats/files/default/robots.txt | 3 +++ cookbooks/stats/recipes/default.rb | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 cookbooks/stats/files/default/robots.txt diff --git a/cookbooks/stats/files/default/robots.txt b/cookbooks/stats/files/default/robots.txt new file mode 100644 index 000000000..6ffbc308f --- /dev/null +++ b/cookbooks/stats/files/default/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: / + diff --git a/cookbooks/stats/recipes/default.rb b/cookbooks/stats/recipes/default.rb index a0b81bb40..b1420734d 100644 --- a/cookbooks/stats/recipes/default.rb +++ b/cookbooks/stats/recipes/default.rb @@ -67,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" -- 2.39.5