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

hosts_file (6) Versions 0.1.0

Provides managed hosts file

Policyfile
Berkshelf
Knife
cookbook 'hosts_file', '= 0.1.0', :supermarket
cookbook 'hosts_file', '= 0.1.0'
knife supermarket install hosts_file
knife supermarket download hosts_file
README
Dependencies
Quality -%

Managed Hosts File

Manage your hosts file with chef.

Base configurables:

  • default[:hosts_file][:path] = '/etc/hosts'
  • default[:hosts_file][:define_self] = 'ip_address' # or 'loopback' or 'localhost_only'

Via Attributes

override_attributes(
  :hosts_file => {
    :custom_entries => {
      '192.168.0.100' => 'www.google.com',
      '192.168.0.101' => %w(www.yahoo.com www.altavista.com)
    }
  }
)

Via LWRP

hosts_file_entry '192.168.0.100' do
  hostname 'www.google.com'
  aliases %w(google.com gmail.com www.gmail.com)
  comment "Override some google lookups"
end

and ensure you add the default recipe to the run list:

run_list(["recipe[hosts_file]"])

Repo:

No quality metric results found