X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d4255068eb429695ebb8734f1ccc65cf346c024a..920b7eb79cf5798f70cf942744a88c3c12377dd1:/cookbooks/oxidized/recipes/default.rb diff --git a/cookbooks/oxidized/recipes/default.rb b/cookbooks/oxidized/recipes/default.rb index 7e4803c70..1840c2af3 100644 --- a/cookbooks/oxidized/recipes/default.rb +++ b/cookbooks/oxidized/recipes/default.rb @@ -29,6 +29,8 @@ package %w[ libssh2-1-dev zlib1g-dev pkg-config + libyaml-dev + logrotate ] keys = data_bag_item("oxidized", "keys") @@ -128,9 +130,15 @@ git "/var/lib/oxidized/configs.git" do group "oxidized" end +bundle_config "/opt/oxidized/daemon" do + user "oxidized" + group "oxidized" + settings "deployment" => "true", + "build.rugged" => "--with-ssh" +end + bundle_install "/opt/oxidized/daemon" do action :nothing - options "--deployment" user "oxidized" group "oxidized" notifies :restart, "service[oxidized]" @@ -148,6 +156,7 @@ systemd_service "oxidized" do "OXIDIZED_LOGS" => "/var/log/oxidized" nice 10 sandbox :enable_network => true + restrict_address_families "AF_NETLINK" read_write_paths ["/run/oxidized", "/var/lib/oxidized", "/var/log/oxidized"] restart "on-failure" notifies :restart, "service[oxidized]"