]> git.openstreetmap.org Git - chef.git/commitdiff
oxidized: use single ssh_known_hosts_entry resource
authorGrant Slater <github@firefishy.com>
Wed, 5 Oct 2022 09:53:58 +0000 (10:53 +0100)
committerGrant Slater <github@firefishy.com>
Wed, 5 Oct 2022 09:53:58 +0000 (10:53 +0100)
cookbooks/oxidized/recipes/default.rb

index 014955f743c331fe55adad8735ec35721d04785c..7bb287f7513665ef88a6f6c8b66bb5d1e1ce358e 100644 (file)
@@ -108,16 +108,12 @@ execute "/opt/oxidized/.ssh/id_rsa.pub" do
 end
 
 ssh_known_hosts_entry "github.com" do
+  action [:create, :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"