From 325c24a8d0f4408165f5c87e6b4172ee687a84ce Mon Sep 17 00:00:00 2001 From: Dragonish Date: Mon, 23 Nov 2026 18:24:34 +0000 Subject: [PATCH] docs(system_baseline): add a Proxmox example for the package blacklist Packages that should only change through a deliberate apt dist-upgrade. Assisted-by: Claude Code --- roles/system_baseline/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/system_baseline/README.md b/roles/system_baseline/README.md index 92260f7..94a90d6 100644 --- a/roles/system_baseline/README.md +++ b/roles/system_baseline/README.md @@ -134,6 +134,18 @@ A profile's `unattended_upgrade_origins` list pins the origins unattended-upgrad `system_baseline_unattended_upgrade_package_blacklist` keeps individual packages out of unattended-upgrades, for a host whose kernel or drivers must not change (for example one with hardware passthrough). Each entry is a regular expression matched against the package name, so `linux-image-.*` covers every kernel image; anchor an entry (`^name$`) when it must not match longer names too. A non-empty list is written to `/etc/apt/apt.conf.d/90unattended-upgrades-blacklist` as `Unattended-Upgrade::Package-Blacklist`. apt appends list entries across files, so the entries are added to those of `50unattended-upgrades`, which is not edited. An empty list removes the file. An entry may not hold a double quote, a backslash or a line break. +- Example for Proxmox VE hosts: packages that should only ever change through a deliberate `apt dist-upgrade` (Proxmox's documented way to update, because its packages add and remove dependencies). The `pve` profile already pins unattended-upgrades to Debian's origins, so these never come from the Proxmox repository through unattended-upgrades; the list keeps that true if the pin is ever removed or widened. Adjust it to the repositories you use: + + ```yaml + system_baseline_unattended_upgrade_package_blacklist: + - "^pve-.*" # pve-manager, pve-kernel-*, pve-qemu-kvm, pve-container ... + - "^libpve-.*" + - "^proxmox-.*" # proxmox-ve, proxmox-kernel-*, proxmox-backup-client ... + - "^qemu-server$" + - "^ceph.*" + - "^corosync$" + ``` + - Like the other unattended-upgrades settings, it is applied only when `unattended-upgrades` is in the profile's packages. - This is unattended-upgrades only. The role's own apt upgrade (`update` tag, and the `update` entry point) is not limited by it; set `system_baseline_update: false` for a host that is patched by a separate flow. - Check the merged result on a host with `apt-config dump | grep Package-Blacklist`.