The ntp cookbook now provides a single custom resource, ntp_service, for
managing the distro-packaged NTP service on current Debian, Ubuntu, and
Enterprise Linux 9+ releases.
- Debian 12+
- Enterprise Linux 9+
- Ubuntu 22.04+
Additional platform constraints are documented in LIMITATIONS.md.
Use ntp_service to install the platform-appropriate NTP package, render the
packaged config file, and enable the packaged systemd service.
ntp_service 'default' do
servers %w(0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org)
endSee documentation/ntp_ntp_service.md for the full property reference.
cookstyle
chef exec rspec
KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen test default-ubuntu-2404 default-rockylinux-9 --destroy=always