notifies :run, "bundle_install[/opt/oxidized/daemon]"
end
+directory "/opt/oxidized/.ssh" do
+ owner "oxidized"
+ group "oxidized"
+ mode "700"
+end
+
# Key is set as a deployment key in github repo
file "/opt/oxidized/.ssh/id_rsa" do
content keys["git"].join("\n")
notifies :restart, "service[oxidized]"
end
+ssh_known_hosts_entry 'github.com' do
+ file_location "/opt/oxidized/.ssh/known_hosts"
+ owner "oxidized"
+ group "oxidized"
+end
+
git "/var/lib/oxidized/configs.git" do
action :sync
repository "git@github.com:openstreetmap/oxidized-configs.git" # Uses oxidized ssh key