cookbook 'hosts_from_search', '= 0.1.0'
hosts_from_search (3) Versions 0.1.0 Follow0
Setup hosts file from a chef search
cookbook 'hosts_from_search', '= 0.1.0', :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.
Foodcritic Metric
0.1.0 failed this metric
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/86ef2421bf600f5e9ae82127/hosts_from_search/recipes/default.rb:6
0.1.0 failed this metric