You can use Chef or Puppet to build out your infrastructure, but if you just need a quick and dirty box set up,
First, download Vagrant and install it.
After that, visit your DigitalOcean account and obtain your API key.
Then install the plugin for Vagrant.
$ vagrant plugin install vagrant-digitalocean
If you run into trouble, please see https://github.com/smdahlen/vagrant-digitalocean#install to understand the overall process for
Save the Vagrantfile
to your project. Modify the line
provider.token = 'YOUR API KEY'
with your DigitalOcean key which you obtained from your DigitalOcean account.
Change the box type if you wish, and the data center location.
Then modify setup.sh
for your needs.
Create the box with
$ vagrant up --provider=digital_ocean
Login as root with
$ vagrant ssh
Rebuild the box (completely removes the droplet and starts over.)
$ vagrant rebuild
Destroy it with
$ vagrant destroy