commit | 6f476c6bb05a4ce5c9691da2ff56d3cf936481ea | [log] [tgz] |
---|---|---|
author | Geoffrey Corey <coreyg@apache.org> | Mon Oct 19 14:33:18 2015 -0700 |
committer | Geoffrey Corey <coreyg@apache.org> | Mon Oct 19 14:33:18 2015 -0700 |
tree | 57ffa24c3495fb2f4687650b9c21efe7761ffb58 | |
parent | 079f6c30e1a6bdcd9c086f02b18360f5acfa340b [diff] |
add yaml for default (does nothing atm)
Test Kitchen + Puppet
git clone https://github.com/apache/infrastructure-puppet
gem install bundler bundle install
mkdir -p $puppet-kitchen-root/puppet/modules 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-ubuntu14.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