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

(#334) Fix catalog when systemd is not available #335

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

smortex
Copy link
Member

@smortex smortex commented Feb 7, 2024

On systems where systemd is not available (e.g. FreeBSD), creating
systemd resources even to ensure they are absent cause errors. We
should only manage systemd resources if the system has systemd.

Rely on the systemd fact to determine if systemd is available. This
fact is provided by puppet-systemd since version 0.3.0, way older that
5.1.0 currently required.

Fixes #334

On systems where systemd is not available (e.g. FreeBSD), creating
systemd resources even to ensure they are absent cause errors.  We
should only manage systemd resources if the system has systemd.

Rely on the `systemd` fact to determine if systemd is available. This
fact is provided by puppet-systemd since version 0.3.0, way older that
5.1.0 currently required.

Fixes #334
@smortex smortex added the bug label Feb 7, 2024
Copy link
Member

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM thanks @smortex you can merge if you are ready

@smortex smortex merged commit 49c4508 into main Feb 13, 2024
@smortex smortex deleted the fix-non-systemd branch February 13, 2024 21:26
active => $systemd_active,
enable => $systemd_enable,
timer_content => epp("mcollective/refresh_facts.timer.epp", {
if $facts["systemd"] == "systemd" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

@smortex smortex Jan 7, 2025

Choose a reason for hiding this comment

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

Oh! I opened #340 which should fix it. See #339

smortex added a commit that referenced this pull request Jan 7, 2025
@treydock reported that an invalid condition was introduced in #335.
This commit fix that.
smortex added a commit that referenced this pull request Jan 7, 2025
@treydock reported that an invalid condition was introduced in #335.
This commit fix that.
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.

puppet-mcollective 0.14.5 broken on FreeBSD
3 participants