File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change 11# This file defines the variables used in the Terraform configuration.
22
3+ variable "talos_nodes" {
4+ type = map (object ({
5+ description : string
6+ tags : list (string )
7+ node_name : string
8+ on_boot : bool
9+ cores : number
10+ memory : number
11+ ip_addr : string
12+ }))
13+ default = {
14+ talos_cp_01 = {
15+ description = " Managed by Terraform"
16+ tags = [" terraform" ]
17+ node_name = " pve"
18+ on_boot = true
19+ cores = 2
20+ memory = 4096
21+ ip_addr = " 10.0.0.70"
22+ }
23+ talos_cp_02 = {
24+ description = " Managed by Terraform"
25+ tags = [" terraform" ]
26+ node_name = " pve2"
27+ on_boot = true
28+ cores = 2
29+ memory = 4096
30+ ip_addr = " 10.0.0.71"
31+ }
32+ talos_cp_03 = {
33+ description = " Managed by Terraform"
34+ tags = [" terraform" ]
35+ node_name = " pve3"
36+ on_boot = true
37+ cores = 2
38+ memory = 4096
39+ ip_addr = " 10.0.0.72"
40+ }
41+ talos_worker_01 = {
42+ description = " Managed by Terraform"
43+ tags = [" terraform" ]
44+ node_name = " pve4"
45+ on_boot = true
46+ cores = 2
47+ memory = 4096
48+ ip_addr = " 10.0.0.73"
49+ }
50+ talos_worker_02 = {
51+ description = " Managed by Terraform"
52+ tags = [" terraform" ]
53+ node_name = " pve5"
54+ on_boot = true
55+ cores = 2
56+ memory = 4096
57+ ip_addr = " 10.0.0.74"
58+ }
59+ talos_worker_03 = {
60+ description = " Managed by Terraform"
61+ tags = [" terraform" ]
62+ node_name = " pve6"
63+ on_boot = true
64+ cores = 2
65+ memory = 4096
66+ ip_addr = " 10.0.0.75"
67+ }
68+ }
69+ }
70+
371variable "cluster_name" {
472 type = string
573 default = " kubernetes_cluster"
@@ -45,6 +113,7 @@ variable "proxmox_password" {
45113 sensitive = true
46114 description = " Password for Proxmox API access"
47115}
116+
48117variable "cp_vip" {
49118 type = string
50119 default = " 192.168.3.180"
You can’t perform that action at this time.
0 commit comments