An open API service indexing awesome lists of open source software.

https://github.com/mfellner/hello-terraform

Basic Terraform example with CoreOS and Digital Ocean.
https://github.com/mfellner/hello-terraform

Last synced: 2 months ago
JSON representation

Basic Terraform example with CoreOS and Digital Ocean.

Awesome Lists containing this project

README

        

# Hello Terraform

Basic example for CoreOS on Digital Ocean, using [Terraform](https://www.terraform.io/).

#### Prerequisites

Create a file `terraform.tfvars` for the following variables:

* do_token (required)
* public_key (optional, default is *~/.ssh/id_rsa.pub*)

#### Get Digital Ocean SSH keys

curl -X GET -H 'Content-Type: application/json' \
-H 'Authorization: Bearer $DO_TOKEN' \
"https://api.digitalocean.com/v2/account/keys"

#### Generate a New Discovery URL

curl -w "\n" https://discovery.etcd.io/new

Replace *discovery* in cloud-config.yml with the generated URL.

## Resources

* https://www.digitalocean.com/community/tutorials/how-to-set-up-a-coreos-cluster-on-digitalocean