]> git.openstreetmap.org Git - chef.git/commitdiff
Use backports for smartmontools on debian
authorTom Hughes <tom@compton.nu>
Thu, 29 Aug 2024 18:30:23 +0000 (19:30 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 29 Aug 2024 18:30:23 +0000 (19:30 +0100)
cookbooks/hardware/recipes/default.rb

index 2fbf301418faae2419c3387ef7da68dee84f8cff..5492134dc50f1ed82eff62dc15f2f877a55edce9 100644 (file)
@@ -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