commit | ec62cc88f5036df5deb6c5dc7ad75e4f26cac8cc | [log] [tgz] |
---|---|---|
author | Geoffrey Corey <geoffcorey7@gmail.com> | Thu Nov 05 11:10:07 2015 -0800 |
committer | Geoffrey Corey <geoffcorey7@gmail.com> | Thu Nov 05 11:10:07 2015 -0800 |
tree | d103305b9a1c2c5499487cefd39da614940089ad | |
parent | d5c8a06cd8029ef92fecda0f233161c9e293df72 [diff] |
Update README.md
Test Kitchen + Puppet
git clone https://github.com/apache/infrastructure-puppet
gem install bundler bundle install
cd <infra puppet repo> ./bin/pull # this will pull in all the 3rd party modules at the specified versions we use in production
cd puppet/modules for i in $(ls <path to infra-pupet 3rdParty>); do ln -s <path to infra-puppet 3rdParty>/$i ./; done for i in $(ls <path to infra-puppet modules>); do ln -s <path to infra-puppet modules>/$i ./; done
Make sure to have some puppet modules in the puppet/modules/
directory. The current hiera setup assumes you have the following modules:
If using GitHub to obtain modules, make sure when you clone the module, it only has the module name on the resulting folder. Example:
git clone https://github.com/puppetlabs/puppetlabs-apt.git apt
Then edit puppet/data/node/default-ubuntu1464.yaml
to start adding classes and setting class parameters.
When you're ready to test, just run:
kitchen converge default
This will bring up a vm, run puppet apply. From there, you can continue writing your puppet module (in puppet/modules/$module
) and testing by running the above command.
Most the the test-kitchen option work with puppet, however make sure to see the kitchen-puppet documentation (even though the explanations aren't nearly as detailed as it needs to be).
Most information has been taken from here