You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
767 B

  1. module "cluster" {
  2. source = "./cluster"
  3. environment = "test"
  4. name = "tendermint-testnet"
  5. # curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/account/keys"
  6. key_ids = [8163311]
  7. image_id = "ubuntu-14-04-x64"
  8. desired_capacity = 4
  9. instance_size = "2gb"
  10. regions = ["AMS2", "FRA1", "LON1", "NYC2", "SFO2", "SGP1", "TOR1"]
  11. }
  12. provider "digitalocean" {
  13. }
  14. output "public_ips" {
  15. value = "${module.cluster.public_ips}"
  16. }
  17. output "private_ips" {
  18. value = "${join(",",module.cluster.private_ips)}"
  19. }
  20. output "seeds" {
  21. value = "${join(":46656,",module.cluster.public_ips)}:46656"
  22. }
  23. output "rpcs" {
  24. value = "${join(":46657,",module.cluster.public_ips)}:46657"
  25. }