Skip to content

Commit

Permalink
fix(harden_os): Fix unattended-upgrades with Debian 11
Browse files Browse the repository at this point in the history
In Debian 11, the security archive layout was changed, requiring `-security` to be added to the origins pattern.

Fixes #38
  • Loading branch information
jhampson-dbre committed Mar 29, 2022
1 parent 35559c5 commit 16d7fe8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/harden_os/templates/50unattended-upgrades.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Unattended-Upgrade::Allowed-Origins {
Unattended-Upgrade::Origins-Pattern {
"origin=${distro_id},codename=${distro_codename},label=${distro_id}";
"origin=${distro_id},codename=${distro_codename},label=${distro_id}-Security";
"origin=${distro_id},codename=${distro_codename}-security,label=${distro_id}-Security";
};

// Python regular expressions, matching packages to exclude from upgrading
Expand Down

0 comments on commit 16d7fe8

Please sign in to comment.