https://github.com/marcusg/vagrantchef
repo to test vagrant with chef
https://github.com/marcusg/vagrantchef
Last synced: 8 months ago
JSON representation
repo to test vagrant with chef
- Host: GitHub
- URL: https://github.com/marcusg/vagrantchef
- Owner: marcusg
- Created: 2014-08-24T14:41:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-31T09:56:46.000Z (about 11 years ago)
- Last Synced: 2025-01-04T17:14:55.329Z (10 months ago)
- Language: Ruby
- Size: 199 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 vagrant@192.168.33.10
bundle exec knife solo cook vagrant@192.168.33.10 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