cookbook 'hosts_from_search', '~> 0.1.3'
hosts_from_search (3) Versions 0.1.3 Follow0
Setup hosts file from a chef search
cookbook 'hosts_from_search', '~> 0.1.3', :supermarket
knife supermarket install hosts_from_search
knife supermarket download hosts_from_search
hosts_from_search Cookbook
Put other chef nodes in /etc/hosts
.
Requirements
This cookbook depends on the hosts_file cookbook.
Attributes
Attribute | Description | Type | Default |
---|---|---|---|
['node_search_query'] |
Search query on node index to get the hosts that will be included in /etc/hosts file. |
String | "*:*" |
Usage
hosts_from_search::default
Just include hosts_from_search
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[hosts_from_search]" ] }
The recipe will issue a query using the ['node_search_query']
attribute and setup a host entry for each result.
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Author:: Marc Cirauqui (marc.cirauqui@abiquo.com)
License:: MIT: http://rem.mit-license.org
Dependent cookbooks
hosts_file ~> 0.2.2 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
hosts_from_search CHANGELOG
This file is used to list changes made in each version of the hosts_from_search cookbook.
0.1.0
- [chirauki] - Initial release of hosts_from_search
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.1.3 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.3 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.1.3 failed this metric
FC066: Ensure chef_version is set in metadata: hosts_from_search/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: hosts_from_search/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.3 passed this metric
Testing File Metric
0.1.3 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.1.3 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.1.3 failed this metric
0.1.3 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.1.3 failed this metric
FC066: Ensure chef_version is set in metadata: hosts_from_search/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: hosts_from_search/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.3 passed this metric
Testing File Metric
0.1.3 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.1.3 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.1.3 failed this metric
FC067: Ensure at least one platform supported in metadata: hosts_from_search/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.3 passed this metric
Testing File Metric
0.1.3 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.1.3 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.1.3 failed this metric
0.1.3 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