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

MODULES-10543: only consider lsbdistcodename for apt-transport-https #905

Merged
merged 1 commit into from
Feb 17, 2020

Conversation

anarcat
Copy link

@anarcat anarcat commented Feb 12, 2020

It does not matter if we have one older source from (say) jessie or
stretch, we could still be running buster or later. The latter is more
reliably indicated by the fact than by the provided "release"
parameter, which is really just an arbitrary string that does not
necessarily match a Debian suite, especially for third-party
repositories.

I have had a problem with this setting when deploying a "stretch"
repository on a "buster" system because I needed to keep MongoDB
running (which is gone from buster). The "stretch" line triggered this
line, which conflicted with a ensure_packages I had elsewhere in our
code base, to remove the apt-transport-https package from buster
and later.

An alternative implementation might prefer to remove the package
unconditionnally if we run a newer release, but I figured I would keep
the changes to a minimum.

It does not matter if we have *one* older source from (say) jessie or
stretch, we could still be running buster or later. The latter is more
reliably indicated by the fact than by the provided "release"
parameter, which is really just an arbitrary string that does not
necessarily match a Debian suite, especially for third-party
repositories.

I have had a problem with this setting when deploying a "stretch"
repository on a "buster" system because I needed to keep MongoDB
running (which is gone from buster). The "stretch" line triggered this
line, which conflicted with a `ensure_packages` I had elsewhere in our
code base, to *remove* the `apt-transport-https` package from buster
and later.

An alternative implementation might prefer to remove the package
unconditionnally if we run a newer release, but I figured I would keep
the changes to a minimum.
@anarcat anarcat requested a review from a team as a code owner February 12, 2020 19:15
@codecov
Copy link

codecov bot commented Feb 12, 2020

Codecov Report

Merging #905 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #905   +/-   ##
=======================================
  Coverage   73.07%   73.07%           
=======================================
  Files           5        5           
  Lines         260      260           
=======================================
  Hits          190      190           
  Misses         70       70

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5884ab...f862889. Read the comment docs.

@anarcat anarcat changed the title only consider lsbdistcodename for apt-transport-https MODULES-10543: only consider lsbdistcodename for apt-transport-https Feb 12, 2020
@geor-g
Copy link

geor-g commented Feb 12, 2020

Thanks, LGTM.

@carabasdaniel carabasdaniel merged commit dcb7116 into puppetlabs:master Feb 17, 2020
@anarcat anarcat deleted the no-release branch February 17, 2020 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants