]> git.openstreetmap.org Git - chef.git/commitdiff
oxidized: add ssh known_hosts key for github
authorGrant Slater <github@firefishy.com>
Sat, 1 Oct 2022 23:39:55 +0000 (00:39 +0100)
committerGrant Slater <github@firefishy.com>
Sat, 1 Oct 2022 23:39:55 +0000 (00:39 +0100)
cookbooks/oxidized/recipes/default.rb

index 119ac13c1c2465eb6235ce63a6f8b602201fd57c..d9689d714dd2626004713f4e1fb7338433ebf4e5 100644 (file)
@@ -107,6 +107,11 @@ execute "/opt/oxidized/.ssh/id_rsa.pub" do
   notifies :restart, "service[oxidized]"
 end
 
+ssh_known_hosts_entry 'github.com' do
+  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