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.
- Host: GitHub
- URL: https://github.com/mfellner/hello-terraform
- Owner: mfellner
- Created: 2015-05-31T22:03:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-31T22:03:40.000Z (about 10 years ago)
- Last Synced: 2024-10-12T00:21:56.990Z (8 months ago)
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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