Repository is archived
No commit activity in last 3 years
No release in over 3 years
Test Kitchen provisioner based on policyfile_zero that generates searchable nodes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 3.2
>= 0.37.1, ~> 0.37

Runtime

~> 0.12
 Project Readme

Kitchen::PolicyfileNodes

ATENTION!!! This project is outdated. Please use kitchen-chefzero-nodes provisioner with the same functionality.

Provisioner policyfile_nodes extends policyfile_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 policyfile_zero we have to create mock in node_path for this search. policyfile_nodes will create mock automatically.

Requirements

  • ChefDK 0.12.0+
  • Test Kitchen 1.7.3+

Supports

  • Linux
  • Windows 2012 RC2

Installation

gem install kitchen-policyfile-nodes

Configuration

Use policyfile_nodes instead of policyfile_zero for the kitchen provisioner name.

provisioner:
  name: policyfile_nodes

Development

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:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Testing

  1. Run bundle install
  2. Run rake for unit testing

Authors

Created and maintained by Andrei Skopenko (andrei@skopenko.net)

License

Apache 2.0 (see LICENSE)