-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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