-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
93 lines (78 loc) · 2.01 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
variable "system_type" {
description = "System type"
type = string
validation {
condition = var.system_type == "intel" || var.system_type == "amd"
error_message = "Valid values for system_type are 'intel' or 'amd'"
}
}
# Hypervisor config
variable "PROXMOX_API_ENDPOINT" {
description = "API endpoint for proxmox"
type = string
}
variable "PROXMOX_USERNAME" {
description = "User name used to login proxmox"
type = string
}
variable "PROXMOX_PASSWORD" {
description = "Password used to login proxmox"
type = string
}
variable "PROXMOX_IP" {
description = "IP address for proxmox"
type = string
}
variable "DEFAULT_BRIDGE" {
description = "Bridge to use when creating VMs in proxmox"
type = string
}
variable "TARGET_NODE" {
description = "Target node name in proxmox"
type = string
}
variable "SSH_KEY" {
description = "Path to SSH key to be used for copying the talos image and creating a template"
type = string
}
# Cluster config
variable "cluster_name" {
description = "Cluster name to be used for kubeconfig"
type = string
}
variable "MASTER_COUNT" {
description = "Number of masters to create"
type = number
validation {
condition = var.MASTER_COUNT != 0
error_message = "Number of master nodes cannot be 0"
}
}
variable "WORKER_COUNT" {
description = "Number of workers to create"
type = number
}
variable "autostart" {
description = "Enable/Disable VM start on host bootup"
type = bool
}
variable "master_config" {
description = "Kubernetes master config"
type = object({
memory = string
vcpus = number
sockets = number
})
}
variable "worker_config" {
description = "Kubernetes worker config"
type = object({
memory = string
vcpus = number
sockets = number
})
}
variable "INTERFACE_TO_SCAN" {
description = "Interface that you wish to scan for finding the talos VMs. Leave this empty for default value."
type = string
}