cookbook 'chrony_ii', '= 0.3.0'
chrony_ii (13) Versions 0.3.0 Follow1
Installs/Configures chrony
cookbook 'chrony_ii', '= 0.3.0', :supermarket
knife supermarket install chrony_ii
knife supermarket download chrony_ii
chrony_ii cookbook
This cookbook installs chrony.
Requirements
platforms
- debian >= 8
- debian 7 should work but the installed version (v1.24) is too old to run on Linux 4.x (for CI)
- ubuntu >= 14.04 (Only LTS)
- centos >= 6
- redhat
- amazon
Attributes
Key | Type | Description | default |
---|---|---|---|
['chrony_ii']['config'] | Hash | chrony.conf value. Hash value can be a string or an array of string. | Depends on platform (see attributes/default.rb ) Default attributes use public NTP servers. |
['chrony_ii']['amazon_time_sync_service'] | Boolean | Whether to use <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html#configure-amazon-time-service">Amazon Time Sync Service</a> | false |
['chrony_ii']['config_update_restart'] | Boolean | Whether to restart chrony daemon after config file change | true |
Recipes
- default - executes the below three recipes.
- config - configures application name, path, and configuration file based on platform family.
- package - removes competing packages and installs chrony.
- service - configures chrony service.
Usage
If you are fine with using the public NTP servers you can simply include chrony_ii
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[chrony_ii]" ] }
If you need to control your configuration use a role.
Sample attribute set for chrony.conf
debian_attr = { 'pool' => [ '0.debian.pool.ntp.org iburst', '1.debian.pool.ntp.org iburst', '2.debian.pool.ntp.org iburst', '3.debian.pool.ntp.org iburst' ], 'initstepslew' => '30 0.debian.pool.ntp.org 1.debian.pool.ntp.org', 'keyfile' => '/etc/chrony/chrony.keys', 'commandkey' => '1', 'driftfile' => '/var/lib/chrony/chrony.drift', 'log' => 'tracking measurements statistics', 'logdir' => '/var/log/chrony', 'maxupdateskew' => '100.0', 'dumponexit' => '', 'dumpdir' => '/var/lib/chrony', 'local' => 'stratum 10', 'allow' => [ '10/8', '192.168/16', '172.16/12' ], 'logchange' => '0.5', 'rtconutc' => '' }
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Tomoya Kabe
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.3.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.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
Foodcritic Metric
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.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
0.3.0 passed this metric
0.3.0 failed this metric
0.3.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
Foodcritic Metric
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.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
0.3.0 passed this metric
0.3.0 passed this metric
0.3.0 passed this metric
Testing File Metric
0.3.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
0.3.0 passed this metric
0.3.0 failed this metric
0.3.0 passed this metric