From 7f9e279d341b99167f9163077ebd43d5e8923a1a Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 1 May 2024 20:05:12 +0100 Subject: [PATCH] otrs: use apt_preference for otrs backport priority --- cookbooks/otrs/recipes/debian.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cookbooks/otrs/recipes/debian.rb b/cookbooks/otrs/recipes/debian.rb index bed09a8b3..2d683b17e 100644 --- a/cookbooks/otrs/recipes/debian.rb +++ b/cookbooks/otrs/recipes/debian.rb @@ -62,10 +62,14 @@ template "/etc/dbconfig-common/otrs2.conf" do :database_password => database_password end -apt_package "otrs2" do - options "-t #{node[:lsb][:codename]}-backports" +# Ensure the OTRS package in backports has a priority preference. +apt_preference "otrs2" do + pin "release o=Debian Backports" + pin_priority "600" end +apt_package "otrs2" + # Ensure debconf is repopulated on a dbconfig change execute "dpkg-reconfigure-otrs2" do action :nothing -- 2.39.5