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"
after "network.target"
user "oxidized"
working_directory "/opt/oxidized/daemon"
+ runtime_directory "oxidized"
exec_start "#{node[:ruby][:bundle]} exec oxidized"
environment "OXIDIZED_HOME" => "/etc/oxidized",
"OXIDIZED_LOGS" => "/var/log/oxidized"