A collection of Chef cookbooks for integration into Vagrant dev-boxes.
Currently under heavy development, thus not guarantied to be complete or even working under all circumstances.
Targets latest Ubuntu LTS and CentOS.
A generated devbox follows our vagrant pattern "export guest's /home/vagrant
via NFS, mount and edit on host."
- (optional) fork
- checkout
- run
librarian-chef install
- Create a
Vagrantfile
(eithervagrant init
or renameVagrantfile.sample
) and edit for your needs. Esp. make sure to:- use a sane value for your private network IP. The default value
33.33.33.33
might be in use on your system - use a correct base-box (
box_url
) which matches your vm-provider (vmware fusion/workstation, virtual box, etc.pp.)
- use a sane value for your private network IP. The default value
- vagrant up [--provider=vmware_fusion]
Consider using a basebox image created by our packer templates.
- chef 11.6.0 (via omnibus install)
- chruby
- ruby-install
Integration tests will run using opscode test-kitchen. They'll spawn a vmware fusion vagrant box and run some simple (yet not complete) tests inside the box. Due to the nature of things, this can take quite some time.
To run test, install dependencies first:
bundle install
Run bundle exec kitchen list
to get a list of available test instances. For
running minimal tests only you may run:
bundle exec kitchen test "minimal-.*"
A test instance is destroyed when tests on this box passed. You may resume a
test by running e.g. bundle exec kitchen verify "minimal-.*"
.