Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcusg/vagrantchef

repo to test vagrant with chef
https://github.com/marcusg/vagrantchef

Last synced: about 14 hours ago
JSON representation

repo to test vagrant with chef

Awesome Lists containing this project

README

        

vagrantchef
===========

repo to test vagrant with chef

### Required tools on host system
- virtualbox 4.x
- bsdtar (on newer virtualbox versions)

### Config

- Adjust path to ssh public key file in `Vagrantfile` (needed for first setup)
- Copy ssh public key to `data_bags/users/deploy.json` to ensure passwordless access to server

### Build box

bundle install
vagrant up

### Prepare box and run recipes

bundle exec knife solo prepare [email protected]
bundle exec knife solo cook [email protected] nodes/base.json

### Tests

Run tests against vagrant instance (run `prepare` and `cook` commands before)

rspec

### Disable Host key verification

put in `~/.ssh/config`

Host 192.168.33.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null