Browse Source

network: update terraform config (#6901)

pull/6903/head
Peter Lai 3 years ago
committed by GitHub
parent
commit
5ee39f05b9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 3 deletions
  1. +9
    -0
      networks/remote/terraform/cluster/main.tf
  2. +2
    -2
      networks/remote/terraform/cluster/variables.tf
  3. +10
    -1
      networks/remote/terraform/main.tf

+ 9
- 0
networks/remote/terraform/cluster/main.tf View File

@ -1,3 +1,12 @@
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
resource "digitalocean_tag" "cluster" { resource "digitalocean_tag" "cluster" {
name = "${var.name}" name = "${var.name}"
} }


+ 2
- 2
networks/remote/terraform/cluster/variables.tf View File

@ -4,13 +4,13 @@ variable "name" {
variable "regions" { variable "regions" {
description = "Regions to launch in" description = "Regions to launch in"
type = "list"
type = list
default = ["AMS3", "FRA1", "LON1", "NYC3", "SFO2", "SGP1", "TOR1"] default = ["AMS3", "FRA1", "LON1", "NYC3", "SFO2", "SGP1", "TOR1"]
} }
variable "ssh_key" { variable "ssh_key" {
description = "SSH key filename to copy to the nodes" description = "SSH key filename to copy to the nodes"
type = "string"
type = string
} }
variable "instance_size" { variable "instance_size" {


+ 10
- 1
networks/remote/terraform/main.tf View File

@ -1,5 +1,14 @@
#Terraform Configuration #Terraform Configuration
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "DO_API_TOKEN" { variable "DO_API_TOKEN" {
description = "DigitalOcean Access Token" description = "DigitalOcean Access Token"
} }
@ -11,7 +20,7 @@ variable "TESTNET_NAME" {
variable "SSH_KEY_FILE" { variable "SSH_KEY_FILE" {
description = "SSH public key file to be used on the nodes" description = "SSH public key file to be used on the nodes"
type = "string"
type = string
} }
variable "SERVERS" { variable "SERVERS" {


Loading…
Cancel
Save