-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
73 lines (68 loc) · 1.66 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
variable "proxmox" {
description = "Proxmox configuration"
type = object({
endpoint = optional(string)
insecure = optional(bool)
username = optional(string)
password = optional(string)
api_token = optional(string)
ssh_agent = optional(string, false)
})
sensitive = true
}
variable "cluster" {
description = "Cluster configuration"
type = object({
name = string
talos_version = optional(string, "v1.8.2")
network_dhcp = optional(bool, false)
gateway = optional(string)
cidr = optional(number)
vlan_id = optional(number, null)
endpoint = optional(string)
})
}
variable "vms" {
description = "VMs configuration"
type = map(object({
host_node = string
machine_type = string
datastore_id = optional(string, "local-lvm")
ip = optional(string)
cpu = number
ram_dedicated = number
os_disk_size = number
data_disk_size = number
install_disk = optional(string, "/dev/sda")
gpu = optional(string)
}))
}
variable "pci" {
description = "Mapping PCI configuration"
type = map(object({
name = string
id = string
iommu_group = number
node = string
path = string
subsystem_id = string
}))
default = null
}
variable "gitops" {
description = "GitOps configuration"
type = object({
repository = string
token = string
cluster_name = string
})
default = null
}
variable "certificate" {
description = "Certificate for k8s sealed-secrets"
type = object({
cert = string
key = string
})
default = null
}