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

Include systemd module for Amazon Linux 2023 #2562

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

rjd1
Copy link
Contributor

@rjd1 rjd1 commented Sep 3, 2024

Summary

Include the systemd module for both AL2 and AL2023.

Additional Context

This resolves an issue where the service fails to start on AL2023.

Related Issues (if any)

#2561

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • [x ] Manually verified. (For example puppet apply)

@rjd1 rjd1 requested review from bastelfreak, ekohl, smortex and a team as code owners September 3, 2024 04:22
@@ -16,7 +16,7 @@
if $facts['os']['name'] != 'Amazon' and $use_systemd {
::apache::mod { 'systemd': }
}
if ($facts['os']['name'] == 'Amazon' and $facts['os']['release']['full'] == '2') {
if ($facts['os']['name'] == 'Amazon' and $facts['os']['release']['major'] =~ /^(2|2023)$/) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

does it make more sense to always include it when systemd is the default init system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah probably @bastelfreak
I think the original logic here was added to support AL1 & 2, with the former not using systemd. But since that's been EOL for a while now, the Amazon specific code shouldn't really be needed anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went ahead and updated the PR.

@ekohl ekohl linked an issue Sep 3, 2024 that may be closed by this pull request
@daveseff
Copy link

Can this get merged soon please?

@malikparvez malikparvez merged commit a1545b3 into puppetlabs:main Sep 26, 2024
39 of 42 checks passed
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.

Service fails to start on Amazon Linux 2023
5 participants