package "munin-node"
service "munin-node" do
- if node[:lsb][:release].to_f >= 14.04
+ if node[:lsb][:release].to_f >= 15.10
+ provider Chef::Provider::Service::Systemd
+ elsif node[:lsb][:release].to_f >= 14.04
provider Chef::Provider::Service::Upstart
end
action [:enable, :start]
supports :status => true, :restart => true, :reload => true
end
-servers = search(:node, "recipes:munin\\:\\:server")
+servers = search(:node, "recipes:munin\\:\\:server") # ~FC010
servers.each do |server|
server.interfaces(:role => :external) do |interface|
end
end
+munin_plugin_conf "df" do
+ template "df.erb"
+end
+
munin_plugin "df"
munin_plugin "df_inode"
+
munin_plugin "diskstats"
munin_plugin "entropy"
munin_plugin "forks"