My attempt to turn DigitalOcean Mesos tutorial to a Terraform template that I can use to automate a Mesos cluster.
-
Make a copy of
config.json.example
and rename it toconfig.json
. -
Edit the file
config.json
. Enter the name of the SSH key name you will associate with the EC2 instances. Change other settings in the file as you see fit. -
Run the Python script to generate a
terraform.tfvars
based on the settings inconfig.json
.$ python setup.py
-
Run terraform to set up the cluster
$ terraform apply
-
Read the output to get an IP address from one of the master nodes.
To visit the Mesosphere console of your cluster go to:
http://ip-address-of-a-master-node:5050
To visit the Marathon console of your cluster go to:
http://ip-address-of-a-master-node:8080
-
Don't forget to remove all resources when you are done playing with this project.
$ terraform destroy
- Digital Ocean: How To Configure a Production-Ready Mesosphere Cluster on Ubuntu 14.04