Skip to content

Instantly share code, notes, and snippets.

@nicwaller
Created December 17, 2016 18:44
Show Gist options
  • Save nicwaller/5a266fe5a8288a879801960e2e7ebea6 to your computer and use it in GitHub Desktop.
Save nicwaller/5a266fe5a8288a879801960e2e7ebea6 to your computer and use it in GitHub Desktop.
Complete build script for ubuntu-14.04-chef vagrant box
#!/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