Skip to content

Automated Cloud Provisioning using Digital Ocean's 'droplet_kit' ruby gem

License

Notifications You must be signed in to change notification settings

gabriel-aires/do-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

do-cloud

Automated Cloud Provisioning using Digital Ocean's 'droplet_kit' ruby gem

Dependencies

  • ruby
  • ruby-bundler
  • unzip
  • sudo
  • wget

Installation

The following instructions are for Ubuntu 18.04:

sudo -i
apt install -y ruby ruby-bundler unzip sudo wget
cd /opt
wget https://github.com/gabriel-aires/do-cloud/archive/master.zip
unzip master.zip
rm -f master.zip
mv do-cloud-master do-cloud
cd do-cloud
bundle
./do-schedule.rb

Preparation

Actual usage of the scripts require an active Digital Ocean account and a personal access token, according to the available instructions

The key should be stored in the file /opt/do-cloud/.do-token.txt

Results

The cloud shoud be provisioned every weekday at 07:00 and destroyed at 19:00. The infrastructure consists of the following virtual machines:

  • neo-lb-01 (active load balancer, static IP enabled)
  • neo-lb-02 (standby load balancer for easy failover)
  • neo-app-01 (docker application server 1)
  • neo-app-02 (docker application server 2)

Cloud Overview

Monitoring

Monitoring is immediately available through the Digital Ocean Dashboard:

Host Monitoring

About

Automated Cloud Provisioning using Digital Ocean's 'droplet_kit' ruby gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages