X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..e2d9c76e0d9a32f82f45b7a3d98199eb18405351:/cookbooks/chef/recipes/repository.rb diff --git a/cookbooks/chef/recipes/repository.rb b/cookbooks/chef/recipes/repository.rb index b4bd2fa06..8c6bf236d 100644 --- a/cookbooks/chef/recipes/repository.rb +++ b/cookbooks/chef/recipes/repository.rb @@ -42,7 +42,7 @@ directory "/var/lib/chef/.chef" do end file "/var/lib/chef/.chef/client.pem" do - content keys["chef-git"].join("\n") + content keys["git"].join("\n") owner "chefrepo" group "chefrepo" mode 0660 @@ -61,3 +61,10 @@ template "#{node[:chef][:repository]}/hooks/post-receive" do group "chefrepo" mode 0750 end + +template "/etc/cron.daily/chef-repository-backup" do + source "repository-backup.cron.erb" + owner "root" + group "root" + mode 0755 +end