Digital Ocean API – Automatic provisioning using Vagrant, Ansible on Ubuntu 14

Install vagrant

sudo apt-get install vagrant

Instal vagrant digatal box plugin

sudo apt-get install ruby1.9.1-dev
sudo vagrant plugin install vagrant-digitalocean

Install virtual box

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list'
wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-4.3
sudo apt-get install virtualbox-dkms

Install ansible

sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:rquillo/ansible
sudo apt-get update
sudo apt-get install ansible

Test Configuration

https://github.com/noren/vagrant-digitalocean
vagrant up --provider=digital_ocean

References