cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

[enhancement]: Allow configuring pin-priorities

Open adam-vest opened this issue 1 year ago • 1 comments

Enhancement

Hi there!

At present, I don't believe there is a built-in way to configure pin priorities in /etc/apt/preferences.d via cloud-init. This can be accomplished currently by just write_files, but it might be a nice-to-have feature to support this natively. Maybe just as a key under apt, like:

apt:
  preferences:
    my-pref:
      Package: *
      Pin: release o=SomeOrigin
      Pin-Priority: 1001

Thank you!

adam-vest avatar Nov 08 '24 21:11 adam-vest

Hello, @adam-vest. Thank you for raising this feature request!

a-dubs avatar Dec 04 '24 14:12 a-dubs