-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
34 lines (34 loc) · 885 Bytes
/
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
variable "cluster" {
type = object({
nodes = map(object({
public_ip6_network_64 = string
}))
configs = map(string)
})
description = "talos-cluster module outputs"
}
variable "pool" {
type = object({
MODULE_NAME = string
prefix = string
datacenter = string
ids = object({
network = optional(string)
load_balancer = optional(string)
})
nodes = map(object({
name = string
server_type = string
image_id = number
private_ip4 = optional(string)
public_ip6_id = number
public_ip6_network_64 = string
public_ip6 = string
}))
})
description = "hcloud-pool module outputs"
validation {
condition = var.pool.MODULE_NAME == "hcloud-pool"
error_message = "must be of type hcloud-pool"
}
}