Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

chrony_ii (3) Versions 0.1.2

Installs/Configures chrony_ii

Berkshelf
Policyfile
Knife
cookbook 'chrony_ii', '~> 0.1.2'
cookbook 'chrony_ii', '~> 0.1.2', :supermarket
knife supermarket install chrony_ii
knife supermarket download chrony_ii
README
Dependencies
Quality 50%

chrony_ii cookbook

Build Status GitHub license GitHub issues

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

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. 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.1.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.2 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.1.2 passed this metric

No Binaries Metric
            

0.1.2 passed this metric

Publish Metric
            

0.1.2 passed this metric

Supported Platforms Metric
            

0.1.2 passed this metric

Testing File Metric
            

0.1.2 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.1.2 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