X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/7b18a5954711dd534f484023c1526106ffc95afb..bfa33fdaa5c0b18e2e376fa181a126e6e8d751a4:/cookbooks/oxidized/recipes/default.rb diff --git a/cookbooks/oxidized/recipes/default.rb b/cookbooks/oxidized/recipes/default.rb index d9689d714..014955f74 100644 --- a/cookbooks/oxidized/recipes/default.rb +++ b/cookbooks/oxidized/recipes/default.rb @@ -107,11 +107,23 @@ 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" + mode "750" +end + git "/var/lib/oxidized/configs.git" do action :sync repository "git@github.com:openstreetmap/oxidized-configs.git" # Uses oxidized ssh key @@ -134,6 +146,7 @@ systemd_service "oxidized" do 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"