cookbook 'hosts_file', '~> 0.2.2'
hosts_file (6) Versions 0.2.2 Follow10
Provides managed hosts file
cookbook 'hosts_file', '~> 0.2.2', :supermarket
knife supermarket install hosts_file
knife supermarket download hosts_file
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:
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
hosts_file cookbook CHANGELOG
This file is used to list the changes made in each version of the hosts_file cookbook.
0.2.2:
- Correct entry for ip6-allrouters
- adds test-kitchen and supporting repository tooling and documentation
Collaborator Number Metric
0.2.2 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.2 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
0.2.2 failed this metric
FC066: Ensure chef_version is set in metadata: hosts_file/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: hosts_file/metadata.rb:1
FC069: Ensure standardized license defined in metadata: hosts_file/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: hosts_file/providers/entry.rb:15
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.2 passed this metric
Testing File Metric
0.2.2 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
0.2.2 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
0.2.2 failed this metric
0.2.2 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
0.2.2 failed this metric
FC066: Ensure chef_version is set in metadata: hosts_file/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: hosts_file/metadata.rb:1
FC069: Ensure standardized license defined in metadata: hosts_file/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: hosts_file/providers/entry.rb:15
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.2 passed this metric
Testing File Metric
0.2.2 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
0.2.2 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
0.2.2 failed this metric
FC067: Ensure at least one platform supported in metadata: hosts_file/metadata.rb:1
FC069: Ensure standardized license defined in metadata: hosts_file/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: hosts_file/providers/entry.rb:15
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.2 passed this metric
Testing File Metric
0.2.2 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
0.2.2 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
0.2.2 failed this metric
0.2.2 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