]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/git/recipes/server.rb
Add initial robots.txt to gitweb to exclude snapshot links
[chef.git] / cookbooks / git / recipes / server.rb
index c3382a2cf19ccd5b78ebe0e70a6feb4f913148a3..f679ce82b7f39f6ec820fe9ef8598e40d596e176 100644 (file)
@@ -44,6 +44,13 @@ apache_site node[:git][:host] do
   directory git_directory
 end
 
+template "#{git_directory}/robots.txt" do
+  source "robots.txt.erb"
+  owner "root"
+  group "root"
+  mode 0644
+end
+
 firewall_rule "accept-git" do
   action :accept
   source "net"