]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/oxidized/recipes/default.rb
oxidized: fix broken usage of ssh_known_hosts_entry flush
[chef.git] / cookbooks / oxidized / recipes / default.rb
index 6d5486d498980bd90da1fcd1c2fa987101882870..014955f743c331fe55adad8735ec35721d04785c 100644 (file)
@@ -107,12 +107,17 @@ 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
   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"