Giter VIP home page Giter VIP logo

digitalocean-dcos-terraform's Introduction

digitalocean-terraform

Terraform scripts for digitalocean.com, based on packet-terraform

This repo holds Terraform scripts to create a

1, 3, or 5 master DCOS cluster on the digitalocean.com provider.

To use:

Clone or download repo.

Generate a do-key keypair (with an empty passphrase):

ssh-keygen -t rsa -P '' -f ./do-key

Copy sample.terraform.tfvars to terraform.tfvars and insert your variables.

Initially, a Digital Ocean account only allows 5 Droplets, which is not sufficient for this experiment. It is possible to increase this limit to 10 on the Digital Ocean profile page.

Run terraform apply

In terraform.tfvars provide the fingerprint for your public SSH key loaded into DigitalOcean.

Theory of Operation:

This script will start the infrastructure machines (bootstrap and masters), then collect their IPs to build an installer package on the bootstrap machine with a static master list. All masters wait for an installation script to be generated on the localhost, then receive that script. This script, in turn, pings the bootstrap machine whilst waiting for the web server to come online and serve the install script itself.

When the install script is generated, the bootstrap completes and un-blocks the cadre of agent nodes, which are cut loose to provision metal and eventually install software.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.