From 00cc4e8d508c65216155a282b0f4c0f10b4c65b7 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 5 Oct 2022 10:53:58 +0100 Subject: [PATCH] oxidized: use single ssh_known_hosts_entry resource --- cookbooks/oxidized/recipes/default.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cookbooks/oxidized/recipes/default.rb b/cookbooks/oxidized/recipes/default.rb index 014955f74..7bb287f75 100644 --- a/cookbooks/oxidized/recipes/default.rb +++ b/cookbooks/oxidized/recipes/default.rb @@ -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" -- 2.43.2