Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
neillturner committed Dec 22, 2015
1 parent 8686107 commit 5b3d268
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ platforms:
- ['forwarded_port', {guest: 8080, host: 8080}]
- [ 'private_network', { ip: '192.168.33.11' } ]
```
**NOTE:** With Test-Kitchen 1.4 you no longer need chef installed to run the tests although we still do this by default. You just need ruby version 2.0 or higher installed and the following added to the `.kitchen.yml` file:

```yaml
provisioner:
name: ansible_playbook
hosts: test-kitchen
```
## Ruby install to run serverspec verify
Expand Down
25 changes: 19 additions & 6 deletions provisioner_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ require_chef_for_busser|true|install chef to run busser for tests. NOTE: kitchen
chef_bootstrap_url |https://www.getchef.com /chef/install.sh| the chef install
require_ansible_source | false | Install Ansible from source using method described here: http://docs.ansible.com/ intro_installation.html#running-from-source. Only works on Debian/Ubuntu at present.
ansible_source_rev | | Branch or Tag to install ansible source
<<<<<<< HEAD
ansible_host_key_checking | true | strict host key checking in ssh
private_key | | ssh private key file for ssh connection
set_private_key_permissions | false | set ssh private key file read only permissions
Expand Down Expand Up @@ -83,14 +82,28 @@ The provisioner can be configured globally or per suite, global settings act as
- name: default
```
**NOTE:** With Test-Kitchen 1.4 you not longer need chef install to run the tests. You just need ruby installed version 1.9 or higher and also add to the .kitchen.yml file
## Ruby install to run serverspec verify
```yaml
verifier:
ruby_bindir: '/usr/bin'
By default test-kitchen installs chef to get a ruby version sutable for run serverspec in the Verify step.
Instead ruby can just be installed by specifing the provisioner option:
```
require_ruby_for_busser false
```
And set the verifer section:
```
where /usr/bin is the location of the ruby command.
verifier:
name: Busser
plugin:
- Ansiblespec
ruby_bindir: '/usr/bin'
```
and create a Gemfile to add additionl ruby gems in directory test/integration/default/ansiblespec
```
source 'https://rubygems.org'
gem 'rake'
```

in this example, vagrant will download a box for ubuntu 1204 with no configuration management installed, then install the latest ansible and ansible playbook against a ansible repo from the /repository/ansible_repo directory using the default manifest site.yml

Expand Down

0 comments on commit 5b3d268

Please sign in to comment.