This script was created based on the DigitalOcean tutorial which can be found here.
This script will create a scalable Wordpress deployment consisting of a MySQL server, multiple GlusterFS nodes, multiple nginx web server nodes and an Nginx load balancer using the DigitalOcean API, user-data and droplet meta-data.
This script requires the droplet_kit gem
To-Do:
- Additional Security measures on servers (iptables, fail2ban, etc)
First install the droplet_kit gem
gem install droplet_kit
Then run create_cluster.rb
ruby create_cluster.rb