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.
 
 
 
 
 
 

46 lines
826 B

#Terraform Configuration
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "DO_API_TOKEN" {
description = "DigitalOcean Access Token"
}
variable "TESTNET_NAME" {
description = "Name of the testnet"
default = "sentrynet"
}
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}"
}