libssh2-1-dev
zlib1g-dev
pkg-config
+ libyaml-dev
+ logrotate
]
keys = data_bag_item("oxidized", "keys")
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]"
environment "OXIDIZED_HOME" => "/etc/oxidized",
"OXIDIZED_LOGS" => "/var/log/oxidized"
nice 10
- private_tmp true
- private_devices true
- protect_system "full"
- protect_home true
- no_new_privileges true
+ sandbox :enable_network => true
+ read_write_paths ["/run/oxidized", "/var/lib/oxidized", "/var/log/oxidized"]
restart "on-failure"
notifies :restart, "service[oxidized]"
end