Created
December 17, 2016 18:44
-
-
Save nicwaller/5a266fe5a8288a879801960e2e7ebea6 to your computer and use it in GitHub Desktop.
Complete build script for ubuntu-14.04-chef vagrant box
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
#!/bin/bash | |
vagrant box add bento/ubuntu-14.04 | |
vagrant init bento/ubuntu-14.04 | |
vagrant up --no-provision | |
vagrant ssh | |
# Enter shell inside vagrant box | |
wget -O - https://omnitruck.chef.io/install.sh | sudo bash -s -- -v 12.14.89 | |
rm /tmp/chef*{rpm,deb} | |
exit | |
# Exit shell inside vagrant box | |
vagrant package --output ubuntu-14.04-chef.box | |
vagrant box add nicwaller/ubuntu-14.04-chef ubuntu-14.04-chef.box |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment