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.

37 lines
691 B

  1. #Terraform Configuration
  2. variable "DO_API_TOKEN" {
  3. description = "DigitalOcean Access Token"
  4. }
  5. variable "TESTNET_NAME" {
  6. description = "Name of the testnet"
  7. default = "remotenet"
  8. }
  9. variable "SSH_KEY_FILE" {
  10. description = "SSH public key file to be used on the nodes"
  11. type = "string"
  12. }
  13. variable "SERVERS" {
  14. description = "Number of nodes in testnet"
  15. default = "4"
  16. }
  17. provider "digitalocean" {
  18. token = "${var.DO_API_TOKEN}"
  19. }
  20. module "cluster" {
  21. source = "./cluster"
  22. name = "${var.TESTNET_NAME}"
  23. ssh_key = "${var.SSH_KEY_FILE}"
  24. servers = "${var.SERVERS}"
  25. }
  26. output "public_ips" {
  27. value = "${module.cluster.public_ips}"
  28. }