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

et_hostname (1) Versions 1.1.0

Set the hostname and put sane values in the hosts file

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

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 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.1.0 passed this metric

No Binaries Metric
            

1.1.0 passed this metric

Publish Metric
            

1.1.0 passed this metric

Supported Platforms Metric
            

1.1.0 failed this metric

et_hostname should declare what platform(s) it supports.

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 passed this metric