From: Tom Hughes Date: Thu, 29 Aug 2024 18:30:23 +0000 (+0100) Subject: Use backports for smartmontools on debian X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/226773e8e4b1b7e0141c45e0040fa2cd4141282a Use backports for smartmontools on debian --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 2fbf30141..5492134dc 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -465,6 +465,12 @@ end disks = disks.compact.uniq if disks.count.positive? + apt_preference "smartmontools" do + pin "release o=Debian Backports" + pin_priority "600" + only_if { platform?("debian") } + end + package "smartmontools" template "/etc/cron.daily/update-smart-drivedb" do