]> git.openstreetmap.org Git - chef.git/commitdiff
oxidized: fix broken usage of ssh_known_hosts_entry flush
authorGrant Slater <github@firefishy.com>
Mon, 3 Oct 2022 23:12:14 +0000 (00:12 +0100)
committerGrant Slater <github@firefishy.com>
Mon, 3 Oct 2022 23:12:14 +0000 (00:12 +0100)
cookbooks/oxidized/recipes/default.rb

index 4b255698920a165efc5941a1a9e19a35c1628fc9..014955f743c331fe55adad8735ec35721d04785c 100644 (file)
@@ -108,12 +108,16 @@ execute "/opt/oxidized/.ssh/id_rsa.pub" do
 end
 
 ssh_known_hosts_entry "github.com" do
-  action :flush
   file_location "/opt/oxidized/.ssh/known_hosts"
   owner "oxidized"
   group "oxidized"
 end
 
+ssh_known_hosts_entry "github.com_flush" do
+  action :flush
+  file_location "/opt/oxidized/.ssh/known_hosts"
+end
+
 directory "/var/lib/oxidized" do
   owner "oxidized"
   group "oxidized"