mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-10-29 17:42:47 +00:00
108 lines
2.3 KiB
HCL
108 lines
2.3 KiB
HCL
|
|
variable "digitalocean_token" {
|
|
description = "The DigitalOcean cloud token (export TF_VAR_hcloud_token=$TOKEN)"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "regions" {
|
|
description = "The id of the hezner region (oreder is important)"
|
|
type = list(string)
|
|
default = ["lon1", "ams3", "fra1"]
|
|
}
|
|
|
|
variable "kubernetes" {
|
|
type = map(string)
|
|
default = {
|
|
podSubnets = "10.32.0.0/12,fd40:10:32::/102"
|
|
serviceSubnets = "10.200.0.0/22,fd40:10:200::/112"
|
|
nodeSubnets = "192.168.0.0/16"
|
|
domain = "cluster.local"
|
|
apiDomain = "api.cluster.local"
|
|
clusterName = "talos-k8s-digitalocean"
|
|
tokenMachine = ""
|
|
caMachine = ""
|
|
token = ""
|
|
ca = ""
|
|
}
|
|
}
|
|
|
|
variable "vpc_main_cidr" {
|
|
description = "Local subnet rfc1918"
|
|
type = string
|
|
default = "172.16.0.0/16"
|
|
}
|
|
|
|
variable "controlplane" {
|
|
description = "Property of controlplane"
|
|
type = map(any)
|
|
default = {
|
|
count = 0,
|
|
type = "cpx11"
|
|
type_lb = "" # lb11, if "" use floating-ip
|
|
}
|
|
}
|
|
|
|
variable "instances" {
|
|
description = "Map of region's properties"
|
|
type = map(any)
|
|
default = {
|
|
"nbg1" = {
|
|
web_count = 0,
|
|
web_type = "cx11",
|
|
worker_count = 0,
|
|
worker_type = "cx11",
|
|
},
|
|
"fsn1" = {
|
|
web_count = 0,
|
|
web_type = "cx11",
|
|
worker_count = 0,
|
|
worker_type = "cx11",
|
|
}
|
|
"hel1" = {
|
|
web_count = 0,
|
|
web_type = "cx11",
|
|
worker_count = 0,
|
|
worker_type = "cx11",
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "talos_version" {
|
|
description = "Tags version"
|
|
type = string
|
|
default = "v1.2.4"
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags of resources"
|
|
type = list(string)
|
|
default = ["Develop"]
|
|
}
|
|
|
|
variable "whitelist_admins" {
|
|
description = "Whitelist for administrators"
|
|
default = ["0.0.0.0/0", "::/0"]
|
|
}
|
|
|
|
variable "whitelist_web" {
|
|
description = "Whitelist for web (default Cloudflare network)"
|
|
default = [
|
|
"173.245.48.0/20",
|
|
"103.21.244.0/22",
|
|
"103.22.200.0/22",
|
|
"103.31.4.0/22",
|
|
"141.101.64.0/18",
|
|
"108.162.192.0/18",
|
|
"190.93.240.0/20",
|
|
"188.114.96.0/20",
|
|
"197.234.240.0/22",
|
|
"198.41.128.0/17",
|
|
"162.158.0.0/15",
|
|
"172.64.0.0/13",
|
|
"131.0.72.0/22",
|
|
"104.16.0.0/13",
|
|
"104.24.0.0/14",
|
|
]
|
|
}
|