]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/stats/recipes/default.rb
Fix some correctness issues identified by foodcritic
[chef.git] / cookbooks / stats / recipes / default.rb
index a0b81bb40390663ba7dd2825e5979de7419ae318..aec51357c218a5a039edcffaf9d8fbab3e0b9605 100644 (file)
@@ -63,10 +63,16 @@ template "/srv/stats.openstreetmap.org/index.html" do
   source "index.html.erb"
   owner "root"
   group "root"
-  mode 644
+  mode 0644
   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"