]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/oxidized/recipes/default.rb
oxidized: use single ssh_known_hosts_entry resource
[chef.git] / 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"