-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
54 lines (51 loc) · 1.27 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
variable "prefix" {
type = string
description = "hcloud resource name prefix, must be unique"
}
variable "datacenter" {
type = string
description = "hcloud datacenter"
}
variable "cidr" {
type = string
description = "hcloud private network cidr4"
nullable = true
default = null
}
variable "load_balancer_ip" {
type = string
description = "hcloud load balancer ip4"
nullable = true
default = null
}
variable "control_planes" {
type = list(object({
server_type = string
image_id = number
aliases = optional(list(string), [])
patches = optional(list(string), [])
removed = optional(bool, false)
}))
description = "define control planes"
default = []
}
variable "workers" {
type = list(object({
server_type = string
image_id = number
aliases = optional(list(string), [])
patches = optional(list(string), [])
removed = optional(bool, false)
}))
description = "define workers"
default = []
}
variable "patches" {
type = object({
common = optional(list(string), [])
control_planes = optional(list(string), [])
workers = optional(list(string), [])
})
description = "pool-wide config patches"
default = {}
}