Skip to content

Instantly share code, notes, and snippets.

@nicwaller
Forked from jtimberman/gist:3088517
Last active March 20, 2016 19:38
Show Gist options
  • Save nicwaller/9cf1986bb5c1d02cb2e3 to your computer and use it in GitHub Desktop.
Save nicwaller/9cf1986bb5c1d02cb2e3 to your computer and use it in GitHub Desktop.
Replace $VAGRANTBOX with box names that should be repackaged with updates. Don't specify it for up, ssh, and package if you're not using a multi-VM vagrantfile
% vagrant box add ubuntu/trusty64
% vagrant box update
% vagrant init ubuntu/trusty64
% vagrant up --no-provision
% vagrant ssh
vagrant$ wget -O - https://omnitruck.chef.io/install.sh | sudo bash
vagrant$ rm /tmp/chef*{rpm,deb}
vagrant$ exit
% vagrant package --output nicwaller-trusty64-chef12.box
% vagrant box add nicwaller/trusty64-chef12 nicwaller-trusty64-chef12.box
# Then use `nicwaller/trusty64-chef12` as the platform name in .kitchen.yml
Other helpful commands:
% vagrant box list
% wget -O - https://omnitruck.chef.io/install.sh | sudo bash -s -- -v 12.8.1
Required reading:
https://github.com/test-kitchen/kitchen-vagrant#-box
https://www.vagrantup.com/docs/cli/box.html#add
Related projects:
https://github.com/boxcutter/ubuntu
https://github.com/chef/bento
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment