Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Last active February 7, 2018 16:40
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jtimberman/3088517 to your computer and use it in GitHub Desktop.
Save jtimberman/3088517 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 up --no-provision $VAGRANTBOX
% vagrant ssh $VAGRANTBOX
vagrant$ wget -O - http://opscode.com/chef/install.sh | sudo bash
vagrant$ rm /tmp/chef*{rpm,deb}
vagrant$ exit
% vagrant package $VAGRANTBOX
% rm -rf ~/.vagrant.d/boxes/$VAGRANTBOX
% vagrant box add $VAGRANTBOX package.box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment