-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
155 lines (125 loc) · 3.46 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#===========================#
# VMware vCenter connection #
#===========================#
variable "vsphere_user" {
type = string
description = "VMware vSphere user name"
sensitive = true
}
variable "vsphere_password" {
type = string
description = "VMware vSphere password"
sensitive = true
}
variable "vsphere_vcenter" {
type = string
description = "VMWare vCenter server FQDN / IP"
sensitive = true
}
variable "vsphere-unverified-ssl" {
type = string
description = "Is the VMware vCenter using a self signed certificate (true/false)"
}
variable "vsphere-datacenter" {
type = string
description = "VMWare vSphere datacenter"
}
variable "vsphere-cluster" {
type = string
description = "VMWare vSphere cluster"
default = ""
}
variable "vsphere-template-folder" {
type = string
description = "Template folder"
default = "Templates"
}
#================================#
# VMware vSphere virtual machine #
#================================#
variable "vm-name-prefix" {
type = string
description = "Name of VM prefix"
default = "k3sup"
}
variable "vm-datastore" {
type = string
description = "Datastore used for the vSphere virtual machines"
}
variable "vm-network" {
type = string
description = "Network used for the vSphere virtual machines"
}
variable "vm-linked-clone" {
type = string
description = "Use linked clone to create the vSphere virtual machine from the template (true/false). If you would like to use the linked clone feature, your template need to have one and only one snapshot"
default = "false"
}
variable "master_cpu" {
description = "Number of vCPU for the vSphere virtual machines"
default = 2
}
variable "worker_cpu" {
description = "Number of vCPU for the vSphere virtual machines"
default = 2
}
variable "master_cores-per-socket" {
description = "Number of cores per cpu for workers"
default = 1
}
variable "worker_cores-per-socket" {
description = "Number of cores per cpu for workers"
default = 1
}
variable "master_ram" {
description = "Amount of RAM for the vSphere virtual machines (example: 2048)"
}
variable "worker_ram" {
description = "Amount of RAM for the vSphere virtual machines (example: 2048)"
}
variable "master_disksize" {
description = "Disk size in GB"
}
variable "worker_disksize" {
description = "Disk size in GB"
}
variable "vm-guest-id" {
type = string
description = "The ID of virtual machines operating system"
}
variable "vm-template-name" {
type = string
description = "The template to clone to create the VM"
}
variable "vm-domain" {
type = string
description = "Linux virtual machine domain name for the machine. This, along with host_name, make up the FQDN of the virtual machine"
default = ""
}
variable "dns_server_list" {
type = list(string)
description = "List of DNS servers"
default = ["8.8.8.8", "8.8.4.4"]
}
variable "master_nodes" {
type = map(string)
description = "List of master node names and ipv4 addresses for K8s masters"
}
variable "worker_nodes" {
type = map(string)
description = "List of worker node names and ipv4 addresses for K8s workers"
}
variable "ipv4_gateway" {
type = string
}
variable "ipv4_netmask" {
type = string
}
variable "ssh_username" {
type = string
sensitive = true
}
variable "ssh_password" {
type = string
sensitive = true
}