Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
Use codename for origin patterns in Debian
Browse files Browse the repository at this point in the history
At least on Debian Jessie, setting `archive` = `codename` is wrong and
results in security upgrades not being applied.
  • Loading branch information
jacksingleton authored and jnv committed Dec 8, 2015
1 parent f21afc6 commit 83be977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If you enable automatic reboot feature (`unattended_automatic_reboot`), the role
## Role Variables

* `unattended_origins_patterns`: array of origins patterns to determine whether the package can be automatically installed, for more details see [Origins Patterns](#origins-patterns) below.
* Default for Debian: `['origin=Debian,archive=${distro_codename},label=Debian-Security']`
* Default for Debian: `['origin=Debian,codename=${distro_codename},label=Debian-Security']`
* Default for Ubuntu: `['origin=Ubuntu,archive=${distro_codename}-security,label=Ubuntu']`
* `unattended_package_blacklist`: packages which won't be automatically upgraded
* Default: `[]`
Expand Down Expand Up @@ -88,7 +88,7 @@ By default, only security updates are allowed for both Ubuntu and Debian. You ca
```yaml
# Archive based matching
unattended_origins_patterns:
- 'origin=Debian,archive=${distro_codename},label=Debian-Security' # resolves to archive=jessie
- 'origin=Debian,codename=${distro_codename},label=Debian-Security' # resolves to codename=jessie
- 'o=Debian,a=stable'
- 'o=Debian,a=stable-updates'
- 'o=Debian,a=proposed-updates'
Expand Down
2 changes: 1 addition & 1 deletion vars/Debian.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
__unattended_origins_patterns:
- 'origin=Debian,archive=${distro_codename},label=Debian-Security'
- 'origin=Debian,codename=${distro_codename},label=Debian-Security'

0 comments on commit 83be977

Please sign in to comment.