X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..8f92d91cd927eb8bf0e6c02d80a726345665f3d5:/cookbooks/git/recipes/server.rb diff --git a/cookbooks/git/recipes/server.rb b/cookbooks/git/recipes/server.rb index c3382a2cf..66f4dd1fc 100644 --- a/cookbooks/git/recipes/server.rb +++ b/cookbooks/git/recipes/server.rb @@ -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" @@ -71,3 +78,10 @@ Dir.new(git_directory).select { |name| name =~ /\.git$/ }.each do |repository| end end end + +template "/etc/cron.daily/git-backup" do + source "backup.cron.erb" + owner "root" + group "root" + mode 0755 +end