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

#Terraform Configuration
variable "DO_API_TOKEN" {
description = "DigitalOcean Access Token"
}
variable "TESTNET_NAME" {
description = "Name of the testnet"
default = "remotenet"
}
variable "SSH_KEY_FILE" {
description = "SSH public key file to be used on the nodes"
type = "string"
}
variable "SERVERS" {
description = "Number of nodes in testnet"
default = "4"
}
provider "digitalocean" {
token = "${var.DO_API_TOKEN}"
}
module "cluster" {
source = "./cluster"
name = "${var.TESTNET_NAME}"
ssh_key = "${var.SSH_KEY_FILE}"
servers = "${var.SERVERS}"
}
output "public_ips" {
value = "${module.cluster.public_ips}"
}