From 03b4e10a2023b0ddde6b1c5ce66992a773b5d0ee Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 3 Oct 2022 18:06:38 +0100 Subject: [PATCH] oxidized: fix cookstyle and immediately flush ssh_known_hosts_entry --- cookbooks/oxidized/recipes/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/oxidized/recipes/default.rb b/cookbooks/oxidized/recipes/default.rb index 6d5486d49..4b2556989 100644 --- a/cookbooks/oxidized/recipes/default.rb +++ b/cookbooks/oxidized/recipes/default.rb @@ -107,7 +107,8 @@ 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 + action :flush file_location "/opt/oxidized/.ssh/known_hosts" owner "oxidized" group "oxidized" -- 2.39.5