# limitations under the License.
#
-include_recipe "apt"
include_recipe "git"
include_recipe "munin"
include_recipe "prometheus"
case manufacturer
when "HP"
+ include_recipe "apt::management-component-pack"
+
package "hponcfg"
execute "update-ilo" do
template "lldp.rb.erb"
end
+package %w[
+ rasdaemon
+ ruby-sqlite3
+]
+
+service "rasdaemon" do
+ action [:enable, :start]
+end
+
+prometheus_exporter "rasdaemon" do
+ port 9797
+end
+
tools_packages = []
status_packages = {}
end
end
+include_recipe "apt::hwraid" unless status_packages.empty?
+
if status_packages.include?("cciss-vol-status")
template "/usr/local/bin/cciss-vol-statusd" do
source "cciss-vol-statusd.erb"
systemd_service "cciss-vol-statusd" do
description "Check cciss_vol_status values in the background"
exec_start "/usr/local/bin/cciss-vol-statusd"
+ nice 10
private_tmp true
protect_system "full"
protect_home true