]> git.openstreetmap.org Git - chef.git/commitdiff
oxidized: fix cookstyle and immediately flush ssh_known_hosts_entry
authorGrant Slater <github@firefishy.com>
Mon, 3 Oct 2022 17:06:38 +0000 (18:06 +0100)
committerGrant Slater <github@firefishy.com>
Mon, 3 Oct 2022 17:06:38 +0000 (18:06 +0100)
cookbooks/oxidized/recipes/default.rb

index 6d5486d498980bd90da1fcd1c2fa987101882870..4b255698920a165efc5941a1a9e19a35c1628fc9 100644 (file)
@@ -107,7 +107,8 @@ execute "/opt/oxidized/.ssh/id_rsa.pub" do
   notifies :restart, "service[oxidized]"
 end
 
-ssh_known_hosts_entry 'github.com' do
+ssh_known_hosts_entry "github.com" do
+  action :flush
   file_location "/opt/oxidized/.ssh/known_hosts"
   owner "oxidized"
   group "oxidized"