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

ntpdate (5) Versions 1.2.1

Installs/Configures ntpdate

Berkshelf/Librarian
Policyfile
Knife
cookbook 'ntpdate', '~> 1.2.1'
cookbook 'ntpdate', '~> 1.2.1', :supermarket
knife cookbook site install ntpdate
knife cookbook site download ntpdate
README
Dependencies
Changelog
Quality

ntpdate Cookbook

Installs ntpdate and configures it to run as a scheduled job.(Although it later uses the ntpdate-debian binary, see man ntpdate). The reason for this one may found after struggling to sync the time via NTP daemon without exposing the external network interface to the world.

By default the cookbook will remove NTP package (if installed).

Requirements

Nothing really special. It depends on the opscode's cron cookbook in order to lay the cronjob.

Attributes

Key Type Description Default
['ntpdate']['enable'] Boolean enable or disable ALL actions true
['ntpdate']['use_ntp_config'] String whether to use the ntp.conf file config 'no'
['ntpdate']['config_folder'] String Where lays the config file '/etc/default'
['ntpdate']['config_file'] String Config file name 'ntpdate'
['ntpdate']['ntp_servers'] StringArray Which time servers to sync from %w(pool.ntp.org)
['ntpdate']['ntp_options'] String Additional options for ntpdate nil
['ntpdate']['package_name'] StringArray Which packages to install %w(ntpdate)
['ntpdate']['crontab_file'] String Crontab file name to create in /etc/cron.d directory ntpdate
['ntpdate']['ntp_pkg_remove'] Boolean Defines if the NTP packet should be removed true
['ntpdate']['ntp_pkg_name'] String NTP Package name ntp

For the [:ntpdate][:crontab] directives check the cron cookbook from opscode.

Usage

ntpdate::default

{
  "name":"my_node",
  "ntpdate": {
    "ntp_servers": %w{ntp1.somedomain.com ntp2.somedomain.com},
    "crontab": {
        "comment": "This Cron sets time on Sundays at 6:00 O'clock",
        "minute": "0",
        "hour":   "6",
        "day":    "7"
    }
  },
  "run_list": [
    "recipe[ntpdate]"
  ]
}

disabling ALL actions

but leaving the recipe in run_list() and the role configuration (sometimes is useful). This will remove all the configuration files the cookbook normally creates but will leave the packages as they are (actual stand).

{
  "name":"my_node",
  "ntpdate": {
   "enable": false
    "ntp_servers": %w{ntp1.somedomain.com ntp2.somedomain.com},
    "crontab": {
        "comment": "This Cron sets time on Sundays at 6:00 O'clock",
        "minute": "0",
        "hour":   "6",
        "day":    "7"
    }
  },
  "run_list": [
    "recipe[ntpdate]"
  ]
}

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: Ivan Golman (ivan.golman@gmail.com)

Dependent cookbooks

cron ~> 1.6

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

ntpdate CHANGELOG

1.2.1

  • [golman] - foodcritic compliance made.

1.2.0

  • [golman] - node[:ntpdate][:enable] control directive added. By default is true.

1.1.0

  • [golman] - NTP package leads to race condition on port. Will be removed by deafult, unless node[:ntpdate][:ntp_pkg_remove] directive is set to false

1.0.1

  • [golman] - Cronjob stdout to /dev/null

1.0.0

  • [golman] - Ready for the first release.

0.1.0

  • [golman] - Initial release of ntpdate

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Collaborator Number Metric
            

1.2.1 failed this metric

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

Contributing File Metric
            

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

Foodcritic Metric
            

1.2.1 failed this metric

FC066: Ensure chef_version is set in metadata: ntpdate/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ntpdate/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.2.1 failed this metric

ntpdate does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

1.2.1 passed this metric

Publish Metric
            

1.2.1 passed this metric

Supported Platforms Metric
            

1.2.1 passed this metric

Testing File Metric
            

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

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