cookbook 'chrony', '~> 2.0.0'
chrony (15) Versions 2.0.0 Follow11
Installs/Configures chrony, an application used to maintain the accuracy of the system clock (similar to NTPd).
cookbook 'chrony', '~> 2.0.0', :supermarket
knife supermarket install chrony
knife supermarket download chrony
chrony cookbook
Configures the time synchronization application chrony as a client or server timeserver, maintaining the accuracy of the system clock (similar to NTP).
Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you'd like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
Requirements
Platforms
- Debian 12+
- Ubuntu 22.04+
- RHEL / AlmaLinux / Rocky / Oracle Linux 9+
- CentOS Stream 9+
- Amazon Linux 2023
- Fedora (latest)
Chef
- Chef >= 15.3
Resources
This cookbook provides the chrony_config custom resource. See [documentation/chrony_config.md](documentation/chrony_config.md) for full details.
Usage
chrony_config 'default' do servers({ 'pool.ntp.org' => 'iburst' }) end
Server configuration
chrony_config 'server' do servers({ 'ntp1.example.com' => 'iburst', 'ntp2.example.com' => 'iburst', }) allow ['192.168.1.0/24'] end
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
chrony CHANGELOG
This file is used to list changes made in each version of the chrony cookbook.
2.0.0 (2026-03-25)
⚠ BREAKING CHANGES
- chrony::client, chrony::server, and chrony::default recipes have been removed. Use the chrony_config resource directly in wrapper cookbooks. The Chef search feature for auto-discovering server nodes is no longer provided — implement in your own wrapper cookbook if needed.
Features
- modernize chrony cookbook and refactor master to server (#74) (283883f)
- set chrony.conf mode to 0600 per CIS benchmark (#52) (5dfd931)
Bug Fixes
1.2.7 (2025-10-15)
Bug Fixes
1.2.6 - 2025-09-04
1.2.5 - 2024-05-02
1.2.4 - 2024-05-02
1.2.3 - 2023-03-02
- Remove delivery workflow
- Add reusable workflow
- Add Markdownlint-cli2
1.2.1 - 2022-09-12
- Remove delivery folder
- Fix issue with setting allow list in client recipe
1.2.0 - 2021-11-22
- Reorder resources so Chrony is configured before it is started.
1.1.3 - 2021-11-17
- Add missing yamllint and mdl checks to CI
1.1.2 - 2021-08-31
- Standardise files with files in sous-chefs/repo-management
1.1.1 - 2021-06-01
- Standardise files with files in sous-chefs/repo-management
1.1.0 - 2021-01-22
- Conditionally search for masters
1.0.0 - 2021-01-21
- Sous Chefs Adoption
- Standardize helpers library
- Improve testing
- Remove unused attributes
- Create attribute to handle custom extra configuration settings
0.3.1 (2020-12-23)
- Minor updates to the kitchen files and metadata.rb source fix - @tas50
- Use platform_family so we also support RHEL-like platforms like Oracle Linux - @gsreynolds
- Cookstyle Bot Auto Corrections with Cookstyle 6.18.8 - @cookstyle
0.3.0 (2020-02-10
- Added full support for CentOS/Redhat 7 & 8
- Expanded test coverage for Ubuntu, CentOS, and Redhat platforms
- Segregated templates used to configure chrony.conf for client and master servers
0.2.0 (2018-09-25)
- This cookbook has been brought back to life now under the chef-cookbooks org. Ideally, we'll rewrite this, but this version is already improved over the previous so we'll be releasing it now. Since this is not 1.0 expect heavy breaking changes in the future.
- Resolved all Foodcritic and Cookstyle warnings
- Added very basic ChefSpec
- Add Travis config + badge
- Added contributing and testing documentation
- Moved templates out of the default directory (chef 11-ism)
- Added name metadata
- Added chef_version metadata
- Added source_url and issues_url metadata
- Added a kitchen config
- Added a delivery local mode config
- Updated copyrights to be Chef Software not Opscode
0.1.0
Initial release.
Collaborator Number Metric
2.0.0 passed this metric
Contributing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
2.0.0 passed this metric
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 passed this metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
2.0.0 passed this metric
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 passed this metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 failed this metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number