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

hostname (11) Versions 0.4.0

Configures hostname and FQDN

Policyfile
Berkshelf
Knife
cookbook 'hostname', '= 0.4.0', :supermarket
cookbook 'hostname', '= 0.4.0'
knife supermarket install hostname
knife supermarket download hostname
README
Dependencies
Changelog
Quality 57%

hostname cookbook

Description

Sets hostname and FQDN of the node. The latest code is hosted at
https://github.com/3ofcoins/chef-cookbook-hostname

Important

Setting hostname on FQDN is not (and won't be) supported. Unfortunately, using dots in the hostname can cause
inconsistent results for any system that consumes DNS
and is not allowed by RFC952. If a user
needs additional info in their shell prompt, they can change PS1 in etc/profile
to include the FQDN together with any information they find useful (such as
the customer, the environment, etc).

Attributes

  • node['set_fqdn'] - FQDN to set.

The asterisk character will be replaced with node.name. This way,
you can add this to base role:

default_attributes :set_fqdn => '*.project-domain.com'

and have node set its FQDN and hostname based on its chef node name
(which is provided on chef-client first run's command line).

  • node['hostname_cookbook']['hostsfile_ip'] -- IP used in /etc/hosts to correctly set FQDN (default: 127.0.1.1)

Recipes

  • hostname::default -- will set node's FQDN to value of set_fqdn attribute, and hostname to its host part (up to first dot).
  • hostname::vmware -- sets hostname automatically using vmtoolsd. You do not need to set node["set_fqdn"].

Author

Author: Maciej Pasternacki maciej@3ofcoins.net

Change History

0.4.0 (2015-03-16)

  • #40: Use file resources with lazy eval and notifies to prevent network restarts from occurring on every chef run (Matt Kasa)
  • Add box with Ubuntu 14.04 for kitchen tests
  • #27: Update default recipe to reload only the hostname plugin instead of ohai (Jonathan Serafini)

0.3.0 (2014-05-20)

  • Fixed (and tested) FreeBSD support
  • #17: added support for RedHat & CentOS (Damien Roche, Marta Paciorkowska)
  • added instructions on manual testing with reboot (Marta Paciorkowska)

0.2.0

  • Refresh and fix tests, add Rubocop style checks (Marta Paciorkowska)
  • #16: do not remove existing /etc/hosts entries on 127.0.0.1, use configurable IP for hostname entry we need to have for ourselves (Jean Mertz, Marta Paciorkowska)

0.1.0

  • Tests: chefspec, test-kitchen
  • Substitute * in set_fqdn with node.name to allow fully automatic FQDN setup.

0.0.6

  • Clean up backup files from community.opscode.com release

0.0.5

  • Added change log
  • metadata.rb explicitly states cookbook name (Chulki Lee)
  • New recipe hostname::vmware (tily)
  • Use hostsfile cookbook to manipulate /etc/hosts, use 127.0.1.1 instead of trying to figure out own IP (Guilhem Lettron)

0.0.4

  • Use attribute levels when setting for Chef 11 compatibility (Alan Wilhelm)

0.0.3

  • Syntax fix for compatibility with Ruby 1.9.2

0.0.2 and before

This is prehistory.

Collaborator Number Metric
            

0.4.0 failed this metric

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

Contributing File Metric
            

0.4.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 http://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.4.0 failed this metric

FC064: Ensure issues_url is set in metadata: hostname/metadata.rb:1
FC065: Ensure source_url is set in metadata: hostname/metadata.rb:1
FC066: Ensure chef_version is set in metadata: hostname/metadata.rb:1
Run with Foodcritic Version 10.3.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.4.0 passed this metric

No Binaries Metric
            

0.4.0 passed this metric

Testing File Metric
            

0.4.0 passed this metric

Version Tag Metric
            

0.4.0 passed this metric