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

et_hostname (1) Versions 1.1.0

Set the hostname and put sane values in the hosts file

Policyfile
Berkshelf
Knife
cookbook 'et_hostname', '~> 1.1.0', :supermarket
cookbook 'et_hostname', '~> 1.1.0'
knife supermarket install et_hostname
knife supermarket download et_hostname
README
Dependencies
Changelog
Quality 33%

hostname Cookbook

Sets the hostname to match the nodename set during creation/bootstrap. Also sets up a /etc/hosts with each node's hostname in it. Lifted almost wholesale from https://gist.github.com/rcreasey/904564.

Requirements

Have to set the nodename during the server creation.

Usage

Just include hostname in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[hostname]"
  ]
}

License and Authors

Authors: Ryan C. Creasey rcreasey@blizzard.com

Jeff Byrnes jeff@evertrue.com

License: None

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

CHANGELOG for hostname

This file is used to list changes made in each version of hostname.

1.1.0:

  • Remove Jeff's personal email address from the metadata and documentation
  • Set up Test Kitchen and add some serverspec tests
  • Handle nil addl_hosts_entries attribute value

1.0.4:

  • Stop resetting the addl_hosts_entries array to [] (it renders the whole functionality useless)

1.0.3:

  • Add support for supplemental hosts entries
  • set target_domain and target_fqdn as defaults instead of node.set

1.0.2:

  • Maintain /etc/hostname file
  • Refactor /etc/hosts template

1.0.1:

  • Total refactor
  • hard-connect node FQDN to node.name
  • hard-code node domain to "priv.evertrue.com"

0.1.0:

  • Initial release of hostname

Collaborator Number Metric
            

1.1.0 passed this metric

Contributing File Metric
            

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

1.1.0 failed this metric

FC064: Ensure issues_url is set in metadata: et_hostname/metadata.rb:1
FC065: Ensure source_url is set in metadata: et_hostname/metadata.rb:1
FC066: Ensure chef_version is set in metadata: et_hostname/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: et_hostname/metadata.rb:1
FC069: Ensure standardized license defined in metadata: et_hostname/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.1.0 passed this metric

Testing File Metric
            

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

1.1.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 include a tag that matches this cookbook version number