feat(system_baseline): add an update toggle and pin the pve unattended-upgrades origins
system_baseline_update (default true) lets the main flow skip the package update for hosts patched by a separate, operator-run flow. The update entry point does not read it: calling it is the request to update. The new profile key unattended_upgrade_origins is rendered into /etc/apt/apt.conf.d/90unattended-upgrades-origins, which #clears both origin lists before setting the pinned patterns, because apt appends list entries across files and a plain drop-in could only widen them. The pve profile pins Debian's point-release and security origins, never the Proxmox repository; the ubuntu profiles pin nothing and are unchanged. Refs defame1297/ansible-homelab-mono#349 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
8a3c7d0fc2
commit
52d06204bb
10 files changed
+181
-7
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// Managed by Ansible (mortis.kamino.system_baseline, tasks/unattended_upgrades.yml). Do not edit: the next run overwrites it.
|
||||
// apt appends list entries across apt.conf.d files, so listing origins here would only widen those of 50unattended-upgrades.
|
||||
// This file sorts after it, clears both origin lists, and sets the only origins unattended-upgrades may install from.
|
||||
// A file that sorts after this one can still add origins.
|
||||
#clear Unattended-Upgrade::Allowed-Origins;
|
||||
#clear Unattended-Upgrade::Origins-Pattern;
|
||||
Unattended-Upgrade::Origins-Pattern {
|
||||
{% for origin in system_baseline_unattended_upgrade_origins %}
|
||||
"{{ origin }}";
|
||||
{% endfor %}
|
||||
};
|
||||
Reference in new issue
Block a user