-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
86 lines (73 loc) · 2.06 KB
/
variables.tf
File metadata and controls
86 lines (73 loc) · 2.06 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
variable "cluster_name" {
type = string
description = "Name of the Talos cluster."
default = "talos-cluster"
}
variable "talos_version" {
type = string
description = "Talos version to use (empty for latest)."
default = ""
}
variable "talos_image_ids" {
type = map(string)
description = "Talos image ID to use (only for custom image; if not supplied, the module will automatically download the image)."
default = null
}
variable "talos_endpoints" {
type = list(string)
description = "List of Talos endpoint IP addresses."
}
variable "k8s_endpoint" {
type = string
description = "Kubernetes API endpoint IP address."
}
variable "gateway" {
type = string
description = "Network gateway IP address."
}
variable "dns_servers" {
type = list(string)
description = "List of DNS server IP addresses."
}
variable "proxmox_network_bridge" {
type = string
description = "Proxmox network bridge to use for the VMs."
}
variable "control_plane" {
type = list(object({
vmid = number
name = optional(string, null)
node_name = string
cpu_cores = optional(number, 2)
memory_mb = optional(number, 2048)
ipv4_address = string
}))
description = "Control plane node configurations."
default = []
}
variable "worker" {
type = list(object({
vmid = number
name = optional(string, null)
node_name = string
cpu_cores = optional(number, 4)
memory_mb = optional(number, 4096)
ipv4_address = string
additional_disk_size = optional(number, 60)
}))
description = "Worker node configurations."
default = []
}
variable "talos_config_patches" {
type = object({
all = optional(list(string), [])
cp = optional(list(string), [])
worker = optional(list(string), [])
})
description = "Talos configuration patches to apply to all nodes, control plane nodes, and worker nodes."
default = {
all = []
cp = []
worker = []
}
}