]> git.openstreetmap.org Git - chef.git/commitdiff
Cleanup munin config for non-existent disks
authorTom Hughes <tom@compton.nu>
Wed, 2 Jan 2019 19:10:50 +0000 (19:10 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 2 Jan 2019 19:10:50 +0000 (19:10 +0000)
cookbooks/hardware/recipes/default.rb

index cdf37d881a1f18bfcb4290f5df4cf7018b40d87d..180c74b8b5880da2434e9089f169a9f1a0fb1c9c 100644 (file)
@@ -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