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

Select Status

RSS

chrony_ii (13) Versions 0.7.1

Installs/Configures chrony

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

Description

Build Status GitHub license GitHub issues Cookbook Version

Installs/Configures chrony

Requirements

Chef Client:

  • chef (>= 12.1)

Platform:

  • debian (>= 8.0.0)
  • ubuntu (>= 16.04.0)
  • centos (>= 7.0.0)
  • redhat
  • amazon

Cookbooks:

No dependencies defined

Attributes

  • node[cookbook_name]['config'] - chrony.conf value. Hash value can be a string or an array of string. Defaults to case node['platform_family'].
  • node[cookbook_name]['amazon_time_sync_service'] - Whether to use Amazon Time Sync Service. Defaults to false.
  • node[cookbook_name]['config_update_restart'] - Whether to restart chrony daemon after config file change. Defaults to true.

Recipes

chrony_ii::config

Configures application name, path, and configuration file based on platform family.

chrony_ii::default

Loads necessary recipes.

chrony_ii::package

Removes competing packages and installs chrony.

chrony_ii::service

Configures chrony service.

chrony_ii::systemd_support

Provides supporting resources for systemd

Resources

chrony_ii_systemd_dependency

Manages additional chronyd service dependencies in systemd

Actions

  • create: Create chronyd service dependencies in systemd Default action.
  • delete: Delete chronyd service dependencies in systemd

Attribute Parameters

  • systemd_system_dir: systemd's system config directory path
  • wants: systemd service 'Wants=' targets with symlinks to 'chronyd.service.wants' Defaults to <code>"network-online.target"</code>.
  • after: systemd service 'After=' targets with symlinks to 'chronyd.service.after' Defaults to <code>"network-online.target"</code>.

Examples

include_recipe 'chrony_ii::systemd_support'
chrony_ii_systemd_dependency '/usr/lib/systemd/system'
include_recipe 'chrony_ii::systemd_support'
chrony_ii_systemd_dependency '/usr/lib/systemd/system' do
  wants 'x.target y.target'
  after 'x.target'
end

Deprecation Notice

We are planning to migrate from attribute and recipe-based cookbook to custom resource-based cookbook.
Most recipes will be deprecated after providing custom resources.

For custom resource's unified_mode feature mandatory for Chef 17, the next major update requires Chef >= 15.3.0.

How to release

  • Version up: update metadata.rb
  • Update Changelog: github_changelog_generator -u elastic-infra -p chrony_ii --future-release v0.5.2
  • Release cookbook: chef exec stove

Testing

To lint the project

chef exec cookstyle

Unit testing

chef exec rspec

Integration testing

chef exec kitchen test

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.

License and Maintainer

Maintainer:: Tomoya Kabe (kabe@elastic-infra.com)

Source:: https://github.com/elastic-infra/chrony_ii

Issues:: https://github.com/elastic-infra/chrony_ii/issues

License:: MIT

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.7.1 failed this metric

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

Contributing File Metric
            

0.7.1 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
            

0.7.1 passed this metric

No Binaries Metric
            

0.7.1 passed this metric

Testing File Metric
            

0.7.1 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.7.1 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