Speed up Chef (Puppet, ...) Testing with Vagrant Snapshots
- First, get your desired baseline installation working with Vagrant.
- Using the vagrant-vbox-snapshot plugin, create a named backup
- Run you provisioning commands.
- Revert to a good snapshot to avoid the build from scratch.
- Wash, rinse, repeat until success.
- You'll probably want to do a from-scratch test and a pre-production test before rolling out changes.
vagrant plugin install vagrant-vbox-snapshot
vagrant snapshot take good-snap
vagrant snapshot back (reload the last snapshot)
vagrant snapshot go good-snap (use the named snapshot)
Written by Kevin McFadden
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vagrant
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#