-
Notifications
You must be signed in to change notification settings - Fork 21
/
variables.tf
72 lines (64 loc) · 1.59 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
variable "exoscale_api_key" { type = string }
variable "exoscale_api_secret" { type = string }
data "terraform_remote_state" "prepare" {
backend = "local"
config = {
path = "${path.module}/prepare/terraform.tfstate"
}
}
locals {
project = data.terraform_remote_state.prepare.outputs.project
regions = data.terraform_remote_state.prepare.outputs.regions
network = data.terraform_remote_state.prepare.outputs.network
network_secgroup = data.terraform_remote_state.prepare.outputs.secgroups
}
variable "tags" {
description = "Tags of resources"
type = map(string)
default = {
"env" = "develop"
}
}
variable "controlplane" {
description = "Controlplane config"
type = map(any)
default = {
"de-fra-1" = {
count = 0,
type = "standard.small",
},
"de-muc-1" = {
count = 0,
type = "standard.tiny",
},
}
}
variable "instances" {
description = "Map of region's properties"
type = map(any)
default = {
"de-fra-1" = {
web_count = 0,
web_type = "standard.tiny",
worker_count = 0,
worker_type = "standard.tiny",
},
"de-muc-1" = {
web_count = 0,
web_type = "standard.tiny",
worker_count = 0,
worker_type = "standard.tiny",
},
}
}
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"
domain = "cluster.local"
apiDomain = "api.cluster.local"
clusterName = "talos-k8s-exoscale"
}
sensitive = true
}