Kitchen::ChefZeroNodes
Provisioner chef_zero_nodes
extends chef_zero
by adding one more step in the end of converge - it downloads the resulted node
JSON object to the nodes_path
on the host machine after successful converge. It allows you to use this node object for searches while converging another
Test Kitchen suites. So, you can use actual node attributes like ipaddress/fqdn to communicate nodes with each other.
For example, 'web' node need to search 'db' node ip.
In chef_zero
we have to create mock in node_path for this search. chef_zero_nodes
will save mock automatically after 'db' successful converge.
Requirements
- ChefDK 0.12.0+
- Test Kitchen 1.10+
Supports
- Linux
- Windows 2012 RC2
Installation
gem install kitchen-chefzero-nodes
Configuration
Use chef_zero_nodes
instead of chef_zero
for the kitchen provisioner name.
provisioner:
name: chef_zero_nodes
Development
- Source hosted at GitHub
- Report issues/questions/feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:
- Fork the repo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Testing
- Run
bundle install
- Run
rake
for unit testing
Authors
Created and maintained by Andrei Skopenko (andrei@skopenko.net)
License
Apache 2.0