Updated UpCloud terraform script to use private network and dynamic (#7779)

additional disks
This commit is contained in:
Fredrik Liv
2021-09-10 22:55:21 +02:00
committed by GitHub
parent a5a88e41af
commit aa00c1d91a
8 changed files with 263 additions and 88 deletions

View File

@ -1,22 +1,28 @@
variable "prefix" {
type = string
}
variable "zone" {
type = string
}
variable "hostname"{
default ="example.com"
}
variable "template_name" {}
variable "template_name"{}
variable "username" {}
variable "username"{}
variable "private_network_cidr" {}
variable "machines" {
description = "Cluster machines"
type = map(object({
node_type = string
cpu = string
mem = string
disk_size = number
node_type = string
cpu = string
mem = string
disk_size = number
additional_disks = map(object({
size = number
tier = string
}))
}))
}