X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/35685e74fef453a260185f35571f3a019b4bb162..81237de2de82c5da30ca650220e35d64fd6427a9:/cookbooks/oxidized/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/oxidized/recipes/default.rb b/cookbooks/oxidized/recipes/default.rb index 5754ceefe..9963670fc 100644 --- a/cookbooks/oxidized/recipes/default.rb +++ b/cookbooks/oxidized/recipes/default.rb @@ -78,6 +78,12 @@ git "/opt/oxidized/daemon" do notifies :run, "bundle_install[/opt/oxidized/daemon]" end +directory "/opt/oxidized/.ssh" do + owner "oxidized" + group "oxidized" + mode "700" +end + # Key is set as a deployment key in github repo file "/opt/oxidized/.ssh/id_rsa" do content keys["git"].join("\n") @@ -101,6 +107,12 @@ execute "/opt/oxidized/.ssh/id_rsa.pub" do notifies :restart, "service[oxidized]" end +ssh_known_hosts_entry 'github.com' do + file_location "/opt/oxidized/.ssh/known_hosts" + owner "oxidized" + group "oxidized" +end + git "/var/lib/oxidized/configs.git" do action :sync repository "git@github.com:openstreetmap/oxidized-configs.git" # Uses oxidized ssh key