A playground for deploying a Nomad Cluster using terraform and Digital Ocean as a provider.
environments/staging.json and add your Digital Ocean API key.
Generate an SSH key that can be used by terraform
Build your base images
make build-consul &&
make build-nomad from the root of the repo. This will create the custom machine images that will be used when creating the cluster and store them on DO.
Deploy the infrastructure
Now you have the base image your servers will use you can run a
make plan and
Connecting to servers
ssh -i ./terraform/.ssh/id_rsa root@SERVER_IP_ADDRESS
Below is some information about how the machines images that are created should be used when applying via terraform.