From: Grant Slater Date: Mon, 3 Oct 2022 17:06:38 +0000 (+0100) Subject: oxidized: fix cookstyle and immediately flush ssh_known_hosts_entry X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/03b4e10a2023b0ddde6b1c5ce66992a773b5d0ee?ds=sidebyside oxidized: fix cookstyle and immediately flush ssh_known_hosts_entry --- 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"