-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
271 lines (228 loc) · 6.25 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
variable "vdc_org_name" {
type = string
description = "Cloud Director Organization Name"
default = ""
}
variable "vdc_group_name" {
type = string
description = "Cloud Director Datacenter Group Name"
default = ""
}
variable "vdc_name" {
type = string
description = "Cloud Director VDC Name"
default = ""
}
variable "vdc_edge_name" {
type = string
description = "Cloud Director Edge Name"
default = ""
}
variable "vm_sizing_policy_name" {
type = string
default = "gp2.4"
}
variable "vapp_org_networks" {
description = "List of vApp Org networks with their types"
type = list(object({
name = string
type = string
}))
default = []
}
variable "is_fenced" {
type = bool
default = false
}
variable "retain_ip_mac_enabled" {
type = bool
default = false
}
variable "reboot_vapp_on_removal" {
type = bool
default = true
}
variable "catalog_org_name" {
type = string
}
variable "catalog_name" {
type = string
default = ""
}
variable "catalog_template_name" {
type = string
default = ""
}
variable "vapp_name" {
type = string
default = "Production Application vApp"
}
variable "vm_name_format" {
type = string
description = "Format for the VM name"
default = "%s %02d"
}
variable "vm_name" {
type = list(string)
description = "List of VM names"
default = []
}
variable "computer_name_format" {
type = string
description = "Format for the computer name"
default = "%s-%02d"
}
variable "computer_name" {
type = list(string)
description = "List of computer names"
default = []
}
variable "vm_cpu_hot_add_enabled" {
type = bool
default = false
}
variable "vm_memory_hot_add_enabled" {
type = bool
default = false
}
variable "vm_min_cpu" {
type = number
default = 2
}
variable "vm_count" {
type = number
default = 2
}
variable "vm_metadata_entries" {
description = "List of metadata entries for the VM"
type = list(object({
key = string
value = string
type = string
user_access = string
is_system = bool
}))
default = []
}
variable "disks_per_vm" {
description = "Number of disks to assign to each VM"
type = number
default = 0
}
variable "vm_disks" {
description = "List of disks per virtual machine"
type = list(object({
name = string
bus_number = number
unit_number = number
}))
default = []
}
variable "network_interfaces" {
description = "List of network interfaces for the VM"
type = list(object({
type = string
adapter_type = string
name = string
ip_allocation_mode = string
ip = string
is_primary = bool
}))
default = []
}
variable "vm_ips_index_multiplier" {
description = "Number of network interfaces for each VM deployment"
type = number
default = 1
}
variable "vm_ips" {
type = list(string)
default = [""]
}
variable "override_template_disks" {
description = "A list of disks to override in the vApp template."
type = list(object({
bus_type = string
size_in_mb = number
bus_number = number
unit_number = number
iops = number
storage_profile = string
}))
default = []
}
variable "vm_customization_force" {
description = "Warning. Setting to true will cause the VM to reboot on every apply operation. This field works as a flag and triggers force customization when true during an update (terraform apply) every time. It never complains about a change in statefile. Can be used when guest customization is needed after VM configuration (e.g. NIC change, customization options change, etc.) and then set back to false. Note. It will not have effect when power_on field is set to false."
type = bool
default = false
}
variable "vm_customization_enabled" {
description = "Enables guest customization which may occur on first boot or if the force flag is used. This option should be selected for Power on and Force re-customization to work."
type = bool
default = true
}
variable "vm_customization_change_sid" {
description = "Allows to change SID (security identifier). Only applicable for Windows operating systems."
type = bool
default = true
}
variable "vm_customization_allow_local_admin_password" {
description = "Allow local administrator password."
type = bool
default = true
}
variable "vm_customization_must_change_password_on_first_login" {
description = "Require Administrator to change password on first login."
type = bool
default = false
}
variable "vm_customization_auto_generate_password" {
description = "Auto generate password."
type = bool
default = true
}
variable "vm_customization_admin_password" {
description = "Manually specify Administrator password."
type = string
default = null
}
variable "vm_customization_number_of_auto_logons" {
description = "Number of times to log on automatically. 0 means disabled."
type = number
default = 0
}
variable "vm_customization_join_domain" {
description = "Enable this VM to join a domain."
type = bool
default = false
}
variable "vm_customization_join_org_domain" {
description = "Set to true to use organization's domain."
type = bool
default = false
}
variable "vm_customization_join_domain_name" {
description = "Set the domain name to override organization's domain name."
type = string
default = null
}
variable "vm_customization_join_domain_user" {
description = "User to be used for domain join."
type = string
default = null
}
variable "vm_customization_join_domain_password" {
description = "Password to be used for domain join."
type = string
default = null
}
variable "vm_customization_join_domain_account_ou" {
description = "Organizational unit to be used for domain join."
type = string
default = null
}
variable "vm_customization_initscript" {
description = "Provide initscript to be executed when customization is applied."
type = string
default = null
}