Clone this repo.
You might already have pip installed in OS X if not, do sudo easy_install pip
Install the latest version of ansible
using sudo pip install ansible===2.0.0.0
and test the installation with ansible --version
Download and install Vagrant from https://www.vagrantup.com/downloads.html
test the installation by executing vagrant --version
Download and install VirualBox from https://www.virtualbox.org/
Open the VirtualBox UI to test
cd upswing
vagrant up
This takes some time to bring up all the machines the first time.
cd upswing/ansible
ansible-playbook site.yml -i inventory/vagrant -u vagrant -s
if you have make
installed, the above two actions could be achieved by running
make install
from the upswing
directory
- Create a Digital Ocean account
- Setup a API TOKEN
export DO_API_TOKEN=<Your API TOKEN>
make digital_ocean
This will do the following
- create an ssh key in you local if it doesn't exist
- copy the ssh public key to digital ocean account with
name=upswing_key
- create 4 instances in the Singapore region
- setup docker and swarm