Skip to content
Permalink
Browse files
update README
  • Loading branch information
stumped2 committed Apr 8, 2015
1 parent c7b24a1 commit 811dd512690c874e326d90c41bd9ccf77fbc3175
Showing 1 changed file with 18 additions and 11 deletions.
@@ -6,29 +6,36 @@ Test Kitchen + Puppet
Requirements
------------

[Vagrant](https://www.vagrantup.com/)
Ruby + Ruby gems
[Virtualbox](https://www.virtualbox.org/)
[ASF's Puppet repo](https://github.com/apache/infrastructure-puppet/)
+ [Vagrant](https://www.vagrantup.com/)
+ Ruby + Ruby gems
+ [Virtualbox](https://www.virtualbox.org/)
+ [ASF's Puppet repo](https://github.com/apache/infrastructure-puppet/)



Installation
------------

Clone ASF's Puppet Repo
+++++++++++++++++++++++
### Clone ASF's Puppet Repo

```
git clone https://github.com/apache/infrastructure-puppet
```

### Install required gems

```
gem install bundler
bundle install
```

mkdir -p puppet/modules
cd puppet modules
### Get modules

```
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
```

Usage
@@ -50,7 +57,7 @@ Example:
git clone https://github.com/puppetlabs/puppetlabs-apt.git apt
```

Then edit ``puppet/data/node/default-ubuntu14.vagrantup.com.yaml`` to start adding classes and setting class parameters.
Then edit ``puppet/data/node/default-ubuntu14.yaml`` to start adding classes and setting class parameters.

When you're ready to test, just run:

@@ -61,9 +68,9 @@ 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](https://github.com/test-kitchen/test-kitchen#usage)
work with puppet, however make sure to see
option work with puppet, however make sure to see
the [kitchen-puppet](https://github.com/neillturner/kitchen-puppet/blob/master/provisioner_options.md)
documentation (even though the explanation isn't nearly as it needs to be).
documentation (even though the explanations aren't nearly as detailed as it needs to be).


Most information has been taken from [here](http://ehaselwanter.com/en/blog/2014/05/08/using-test-kitchen-with-puppet/)

0 comments on commit 811dd51

Please sign in to comment.