]> git.openstreetmap.org Git - chef.git/commitdiff
apt: use apt_preference to pin cciss-vol-status
authorGrant Slater <github@firefishy.com>
Mon, 16 Jan 2023 02:08:25 +0000 (02:08 +0000)
committerGrant Slater <github@firefishy.com>
Mon, 16 Jan 2023 02:08:25 +0000 (02:08 +0000)
cookbooks/apt/recipes/default.rb

index 1d73a4d9bb17812afe933897cd6e2ec7cae8279d..c92865b55ca5a628df1a20d014a5dd8569acce8b 100644 (file)
@@ -28,11 +28,14 @@ file "/etc/motd.tail" do
   action :delete
 end
 
-template "/etc/apt/preferences.d/99-chef" do
-  source "preferences.erb"
-  owner "root"
-  group "root"
-  mode "644"
+# FIXME: cleanup old package pin method for cciss-vol-status
+file "/etc/apt/preferences.d/99-chef" do
+  action :delete
+end
+
+apt_preference "cciss-vol-status" do
+  pin          "origin *.ubuntu.com"
+  pin_priority "1100"
 end
 
 apt_update "/etc/apt/sources.list" do