Skip to content

update support for Ubuntu 24.04 #726

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kjetilho
Copy link

@kjetilho kjetilho commented Jun 12, 2025

Summary

Ubuntu 24.04 uses the ntpsec package to manage the ntp service.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

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

relying on Ubuntu full containing the month number works fine for specific
versions, but makes it hard to use versioncmp.

this patch does not change behaviour
@kjetilho kjetilho requested review from bastelfreak, smortex and a team as code owners June 12, 2025 13:17
ntp::package_name:
- ntpsec
ntp::config: '/etc/ntpsec/ntp.conf'

Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove the empty line

@kjetilho kjetilho force-pushed the feature/ubuntu-24.04 branch 2 times, most recently from 93a178a to 971d9e8 Compare June 12, 2025 14:30
kjetilho added 4 commits June 12, 2025 18:07
both of these have "ntp" as a transitional package which installs
"ntpsec", but setting package_name explicitly is cleaner and allows
easier keying of how to configure the system.
@kjetilho kjetilho force-pushed the feature/ubuntu-24.04 branch from 9f286ec to b432117 Compare June 12, 2025 16:07
@kjetilho
Copy link
Author

I don't think the failing tests are something I can fix? I don't see any action points, at least. please let me know if there is something I can do.

@benjunmun
Copy link

On my ubuntu 24.04 server I also needed to update the driftfile location due to new AppArmor rules: ntp::driftfile: '/var/lib/ntpsec/ntp.drift'

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