Hosts cookbook for Chef
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
templates/default
README.md
metadata.rb

README.md

DESCRIPTION

Manages the /etc/hosts file for a node.

This cookbook is inspired by the 37 Signals hosts cookbook.

REQUIREMENTS

Only tested on Debian 6.0.

USAGE

The hosts:default recipe checks for hostnames defined via attributes on the node in a simple hash format.

override_attributes(
  :hosts => {
    '10.0.1.1' => 'host1 alias1 alias2'
  }
)