Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace legacy Allowed-Origins with Origins-Pattern on all distros #204

Merged
merged 5 commits into from
Nov 3, 2021

Conversation

towo
Copy link
Member

@towo towo commented Nov 3, 2021

Pull Request (PR) description

Since all Debian-based distributions VP officially supports feature a version of unattended-upgrade that's compatible with the Origins-Pattern variable, this PR gets rid of the legacy configuration altogether.

To ensure that no one gets unexpected surprises by this, I've added input validation for $origins to ensure it's only in the new-style format and hopefully avoid exploding in people's faces; nevertheless, since this potentially breaks existing configurations, it should probably be combined with a major version bump.

To ensure people don't trip over old configs, let's validate that the
given origins comply with the current format.

Straight-up removed legacy origins as, after checking, none of the
Debian-based distributions (and thus their derivates) we support still
require legacy-style origin definition.

This is a breaking change.
* Leftover legacy formats in tests removed.
* A typo in the ESM repositories fixed.
* Use correct test specs.
@kenyon
Copy link
Member

kenyon commented Nov 3, 2021

Looks good, maybe a more descriptive PR title for the changelog?

metadata.json Outdated
@@ -27,7 +27,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"18.04",
"20.04"
"20.04",
"21.04"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you have a ubuntu 21.04 box around to provide factsets for https://github.com/voxpupuli/facterdb ? Also please create a new PR that adds 21.04 here. That allows us to put the two PRs in different sections (breaking change vs enhancement)

@bastelfreak bastelfreak added backwards-incompatible needs-work not ready to merge just yet labels Nov 3, 2021
@towo towo changed the title Fix/ubuntu legacy Replace legacy Allowed-Origins with Origins-Pattern on all distros Nov 3, 2021
@towo
Copy link
Member Author

towo commented Nov 3, 2021

Looks good, maybe a more descriptive PR title for the changelog?

To be fair… I didn't even notice I forgot to change the PR title from the branch name. ta. :)

@bastelfreak bastelfreak removed the needs-work not ready to merge just yet label Nov 3, 2021
@bastelfreak bastelfreak merged commit 3605678 into voxpupuli:master Nov 3, 2021
@nox-4O4
Copy link

nox-4O4 commented Nov 24, 2021

You might consider updating the README. Currently documentation there still references the now-removed legacy_origin, along with the explanation what it used to change.

kenyon added a commit that referenced this pull request Nov 24, 2021
`legacy_origin` was removed in #204.
@kenyon
Copy link
Member

kenyon commented Nov 24, 2021

Thanks, I made #205 for updating the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants