-
Notifications
You must be signed in to change notification settings - Fork 322
remove dependency on cgroupfs-mount for Debian trixie #1024
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
base: main
Are you sure you want to change the base?
Conversation
|
manifests/params.pp
Outdated
@@ -360,7 +360,7 @@ | |||
# https://github.com/docker/docker/issues/4734 | |||
$prerequired_packages = $facts['os']['family'] ? { | |||
'Debian' => $facts['os']['name'] ? { | |||
'Debian' => ['cgroupfs-mount',], | |||
'Debian' => $facts['os']['distro']['codename'] ? { 'bookworm' => ['cgroupfs-mount',], 'trixie' => [] }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Debian' => $facts['os']['distro']['codename'] ? { 'bookworm' => ['cgroupfs-mount',], 'trixie' => [] }, | |
'Debian' => $facts['os']['distro']['codename'] ? { | |
'trixie' => [], | |
default => ['cgroupfs-mount',], | |
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, @charlyforot, and thanks for the suggestion!
As i don't see the cgroupfs-mount
package available in sid (ref), i suggest we keep a default of no packages, thinking about the future and assuming for now that only bookworm
will have that package.
Does that make sense?
If so, then this is what we'd want:
'Debian' => $facts['os']['distro']['codename'] ? { 'bookworm' => ['cgroupfs-mount',], 'trixie' => [] }, | |
'Debian' => $facts['os']['distro']['codename'] ? { | |
'bookworm' => ['cgroupfs-mount',], | |
default => [] | |
}, |
How does that sound?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As i don't see the cgroupfs-mount package available in sid (ref), i suggest we keep a default of no packages, thinking about the future and assuming for now that only bookworm will have that package.
i just implemented something like that, even though a bit different than in my comment above, to capture the current state of package availability in Debian, so:
- if codename is bullseye (current oldstable) or bookworm (current stable), we require the package
- else, we don't.
Note that in some days bullseye will become oldoldstable, bookworm will become oldstable, and trixie will become stable, so the proposed code should be good at least for the life of the next stable release, that is, a couple of years.
i'm actually unsure about whether we should introduce the requirement for bullseye, as it was not there before and will impact any bullseye installation that uses this module.
At this moment, the `cgroupfs-mount` package only exists in Debian up to Bookworm, so we must not require that package for newer releases. Fixes puppetlabs#1023
Summary
remove dependency on cgroupfs-mount for Debian trixie, because that package isn't available in that release.
Related Issues (if any)
Fixes #1023
Checklist
puppet apply
)