From: Tom Hughes Date: Wed, 2 Jan 2019 19:10:50 +0000 (+0000) Subject: Cleanup munin config for non-existent disks X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/3b37e95617a41417037c9aadee3ccc31fb06db25?ds=sidebyside Cleanup munin config for non-existent disks --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index cdf37d881..180c74b8b 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -460,6 +460,7 @@ plugins = Dir.glob("/etc/munin/plugins/smart_*").map { |p| File.basename(p) } - plugins.each do |plugin| munin_plugin plugin do action :delete + conf "munin.smart.erb" end end