A Test Kitchen Driver for HashiCorp Vagrant.
This driver works by generating a single Vagrantfile for each instance in a sandboxed directory. Since the Vagrantfile is written out on disk, Vagrant needs absolutely no knowledge of Test Kitchen. So no Vagrant plugins are required.
Vagrant version of 2.4 or later.
The kitchen-vagrant driver ships as part of Chef Workstation. The easiest way to use this driver is to use it with Chef Workstation.
If you want to install the driver directly into a Ruby installation:
gem install kitchen-vagrantIf you're using Bundler, simply add it to your Gemfile:
gem "kitchen-vagrant"... and then run bundle install.
See the kitchen.ci Vagrant Driver Page for documentation on configuring this driver.
If your VM's SSH daemon listens on a non-standard port (other than port 22), you can configure Test Kitchen to use the custom port:
driver:
name: vagrant
ssh:
guest_port: 444 # SSH daemon listens on port 444 inside the VM
network:
- ["forwarded_port", {guest: 444, host: 2222, auto_correct: true}]This configuration tells Vagrant that the SSH daemon inside the guest VM is listening on port 444 instead of the default port 22. Vagrant will handle the port forwarding appropriately.
- Source hosted at GitHub
- Report issues/questions/feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:
- Fork the repo
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Created by Fletcher Nichol ([email protected])
Apache 2.0 (see LICENSE)