cookbook 'chrony_ii', '= 0.1.2'
chrony_ii (10) Versions 0.1.2 Follow0
Installs/Configures chrony
cookbook 'chrony_ii', '= 0.1.2', :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 = { 'server' => [ '0.debian.pool.ntp.org offline minpoll 8', '1.debian.pool.ntp.org offline minpoll 8', '2.debian.pool.ntp.org offline minpoll 8', '3.debian.pool.ntp.org offline minpoll 8' ], '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.
License Metric
0.1.2 passed this metric
0.1.2 passed this metric