Put other chef nodes in /etc/hosts
.
This cookbook depends on the hosts_file cookbook.
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 | "*:*" |
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.
- 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
-
Author:: Marc Cirauqui (marc.cirauqui@abiquo.com)
-
License:: MIT: http://rem.mit-license.org