-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
301 lines (252 loc) · 6.67 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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
variable "location" {
type = string
description = "Object location"
}
variable "resource_group" {
type = string
description = "Object resource group"
}
variable "virtual_machine_instances" {
type = number
description = "Number of Azure Virtual Machine to create"
default = 1
}
variable "virtual_machine_names" {
type = list(string)
description = "A list of Azure Virtual Machine Names"
}
variable "use_network_security_group" {
type = bool
description = "True if you want to specify a network security group to attach to NIC"
default = false
}
variable "network_security_group_id" {
type = string
description = "Network security group attached to vms nic"
default = ""
}
variable "enable_accelerated_networking" {
type = bool
description = "Should Accelerated Networking be enabled?"
default = false
}
variable "enable_ip_forwarding" {
type = bool
description = "Should IP Forwarding be enabled?"
default = false
}
variable "dns_servers" {
type = list(string)
description = "A list of IP Addresses defining the DNS Servers which should be used for this Network Interface"
default = []
}
variable "subnet_id" {
type = string
description = "The subnet id where to create vms"
}
variable "private_ip_address_allocation" {
type = string
description = "Ip allocation: Dynamic or Static"
}
variable "private_ip_addresses" {
type = list(string)
description = "Private ip addresses for the virtual machines"
default = []
}
variable "public_ip_addresses" {
type = list(string)
description = "Public ip addresses for the virtual machines"
default = []
}
variable "application_security_group_ids" {
type = list(string)
description = "Application Security Group Ids to associate to nic"
default = []
}
variable "is_windows" {
type = bool
description = "True for a Windows virtual machine"
}
variable "vm_size" {
type = string
description = "Virtual machine size"
}
variable "license_type" {
type = string
description = "Specifies the BYOL Type for this Virtual Machine"
default = "Windows_Server"
}
variable "vm_os_publisher" {
type = string
description = "Vm os publisher"
}
variable "vm_os_offer" {
type = string
description = "Vm os offer"
}
variable "vm_os_sku" {
type = string
description = "Vm os sku"
}
variable "vm_os_version" {
type = string
description = "Vm os version"
default = "latest"
}
variable "storage_account_type" {
type = string
description = "Storage account type"
default = "Standard_LRS"
}
variable "use_custom_os_disk_size" {
type = bool
description = "True to specify custom os data size"
default = false
}
variable "os_disk_size_gb" {
type = number
description = "Storage os disk size"
default = 50
}
variable "data_disks" {
type = list(object({
data_disk_sa_type = string
data_disk_caching = string
data_disk_size_gb = number
data_disk_lun = number
}))
description = "List of data disk objects"
default = []
}
variable "admin_username" {
type = string
description = "Admin username"
}
variable "admin_password" {
type = string
description = "Admin password"
}
variable "boot_diagnostics" {
type = bool
description = "Boot diagnostics"
default = false
}
variable "storage_account_boot_diagnostics" {
type = string
description = "Storage account boot diagnostics"
default = ""
}
# Identity variables
variable "identity_type" {
type = string
description = "Specifies the type of Managed Service Identity. Possible values are SystemAssigned, UserAssigned, (SystemAssigned, UserAssigned)"
default = ""
}
variable "identity_ids" {
type = list(string)
description = "Specifies a list of User Assigned Managed Identity IDs"
default = []
}
variable "tags" {
type = any
description = "Tags"
default = {}
}
# Backup variables
variable "backup_enabled" {
type = bool
description = "True to set up backup configuration"
default = false
}
variable "recovery_vault_name" {
type = string
description = "Recovery vault name"
default = ""
}
variable "recovery_vault_resource_group" {
type = string
description = "Recovery vault resource group"
default = ""
}
variable "backup_policy_id" {
type = string
description = "Backup policy id"
default = ""
}
# Availability set variables
variable "availability_set_enabled" {
type = bool
description = "True to enable availability set"
default = false
}
variable "availability_set_id" {
type = string
description = "Id of the availability set"
default = ""
}
# Availability zones variables
variable "availability_zones_enabled" {
type = bool
description = "True to enable use of availability zones"
default = true
}
variable "availability_zones_number" {
type = number
description = "Number of availability zones"
default = 3
}
# JsonADDomainExtension extension variables
variable "join" {
type = bool
description = "True to join vm to domain"
default = false
}
variable "windows_domain_name" {
type = string
description = "Name of the windows domain to join to"
default = ""
}
variable "windows_domain_username" {
type = string
description = "Name of the user with domain join permission"
default = ""
}
variable "windows_domain_password" {
type = string
description = "Password for the user with domain join permission"
default = ""
}
# AADLoginForWindows extension variables
variable "aad_login_for_windows" {
type = bool
description = "True to join vm to Azure Active Directory"
default = false
}
# Customization variables
variable "customize" {
type = bool
description = "True to run customization script"
default = false
}
# Windows custom script extension variables
variable "windows_cs_file_uri" {
type = string
description = "Windows custom script file URI"
default = ""
}
variable "windows_cs_command" {
type = string
description = "Windows custom script command to execute"
default = "powershell -ExecutionPolicy Unrestricted -File customize_windows.ps1"
}
# Linux custom script extension variables
variable "linux_cs_file_uri" {
type = string
description = "Linux custom script file URI"
default = ""
}
variable "linux_cs_command" {
type = string
description = "Linux custom script command to execute"
default = "bash customize_linux.bash"
}