This repository has been archived by the owner on Jun 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
365 lines (307 loc) · 9.26 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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
variable "location" {
description = "The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table'"
default = ""
}
variable "virtual_network_name" {
description = "The name of the virtual network"
default = ""
}
variable "subnet_name" {
description = "The name of the subnet to use in VM scale set"
default = ""
}
variable "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}
variable "hub_storage_account_name" {
description = "The name of the hub storage account to store logs"
default = null
}
variable "virtual_machine_name" {
description = "The name of the virtual machine."
default = ""
}
variable "os_flavor" {
description = "Specify the flavor of the operating system image to deploy Virtual Machine. Valid values are `windows` and `linux`"
default = "windows"
}
variable "virtual_machine_size" {
description = "The Virtual Machine SKU for the Virtual Machine, Default is Standard_A2_V2"
default = "Standard_A2_v2"
}
variable "instances_count" {
description = "The number of Virtual Machines required."
default = 1
}
variable "enable_ip_forwarding" {
description = "Should IP Forwarding be enabled? Defaults to false"
default = false
}
variable "enable_accelerated_networking" {
description = "Should Accelerated Networking be enabled? Defaults to false."
default = false
}
variable "private_ip_address_allocation_type" {
description = "The allocation method used for the Private IP Address. Possible values are Dynamic and Static."
default = "Dynamic"
}
variable "private_ip_address" {
description = "The Static IP Address which should be used. This is valid only when `private_ip_address_allocation` is set to `Static` "
default = null
}
variable "dns_servers" {
description = "List of dns servers to use for network interface"
default = []
}
variable "enable_vm_availability_set" {
description = "Manages an Availability Set for Virtual Machines."
default = false
}
variable "enable_public_ip_address" {
description = "Reference to a Public IP Address to associate with the NIC"
default = null
}
variable "source_image_id" {
description = "The ID of an Image which each Virtual Machine should be based on"
default = null
}
variable "custom_image" {
description = "Provide the custom image to this module if the default variants are not sufficient"
type = map(object({
publisher = string
offer = string
sku = string
version = string
}))
default = null
}
variable "linux_distribution_list" {
description = "Pre-defined Azure Linux VM images list"
type = map(object({
publisher = string
offer = string
sku = string
version = string
}))
default = {
ubuntu1604 = {
publisher = "Canonical"
offer = "UbuntuServer"
sku = "16.04-LTS"
version = "latest"
},
ubuntu1804 = {
publisher = "Canonical"
offer = "UbuntuServer"
sku = "18.04-LTS"
version = "latest"
},
centos75 = {
publisher = "OpenLogic"
offer = "CentOS"
sku = "7.5"
version = "latest"
},
centos77 = {
publisher = "OpenLogic"
offer = "CentOS"
sku = "7.7"
version = "latest"
},
centos81 = {
publisher = "OpenLogic"
offer = "CentOS"
sku = "8_1"
version = "latest"
},
coreos = {
publisher = "CoreOS"
offer = "CoreOS"
sku = "Stable"
version = "latest"
},
mssql2019ent-rhel8 = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-rhel8"
sku = "enterprise"
version = "latest"
},
mssql2019std-rhel8 = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-rhel8"
sku = "standard"
version = "latest"
},
mssql2019dev-rhel8 = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-rhel8"
sku = "sqldev"
version = "latest"
},
mssql2019ent-ubuntu1804 = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ubuntu1804"
sku = "enterprise"
version = "latest"
},
mssql2019std-ubuntu1804 = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ubuntu1804"
sku = "standard"
version = "latest"
},
mssql2019dev-ubuntu1804 = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ubuntu1804"
sku = "sqldev"
version = "latest"
},
}
}
variable "linux_distribution_name" {
default = "ubuntu1804"
description = "Variable to pick an OS flavour for Linux based VM. Possible values include: centos8, ubuntu1804"
}
variable "windows_distribution_list" {
description = "Pre-defined Azure Windows VM images list"
type = map(object({
publisher = string
offer = string
sku = string
version = string
}))
default = {
windows2012r2dc = {
publisher = "MicrosoftWindowsServer"
offer = "WindowsServer"
sku = "2012-R2-Datacenter"
version = "latest"
},
windows2016dc = {
publisher = "MicrosoftWindowsServer"
offer = "WindowsServer"
sku = "2016-Datacenter"
version = "latest"
},
windows2019dc = {
publisher = "MicrosoftWindowsServer"
offer = "WindowsServer"
sku = "2019-Datacenter"
version = "latest"
},
windows2016dccore = {
publisher = "MicrosoftWindowsServer"
offer = "WindowsServer"
sku = "2016-Datacenter-Server-Core"
version = "latest"
},
mssql2017exp = {
publisher = "MicrosoftSQLServer"
offer = "SQL2017-WS2019"
sku = "express"
version = "latest"
},
mssql2017dev = {
publisher = "MicrosoftSQLServer"
offer = "SQL2017-WS2019"
sku = "sqldev"
version = "latest"
},
mssql2017std = {
publisher = "MicrosoftSQLServer"
offer = "SQL2017-WS2019"
sku = "standard"
version = "latest"
},
mssql2017ent = {
publisher = "MicrosoftSQLServer"
offer = "SQL2017-WS2019"
sku = "enterprise"
version = "latest"
},
mssql2019std = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ws2019"
sku = "standard"
version = "latest"
},
mssql2019dev = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ws2019"
sku = "sqldev"
version = "latest"
},
mssql2019ent = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ws2019"
sku = "enterprise"
version = "latest"
},
mssql2019ent-byol = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ws2019-byol"
sku = "enterprise"
version = "latest"
},
mssql2019std-byol = {
publisher = "MicrosoftSQLServer"
offer = "sql2019-ws2019-byol"
sku = "standard"
version = "latest"
}
}
}
variable "windows_distribution_name" {
default = "windows2019dc"
description = "Variable to pick an OS flavour for Windows based VM. Possible values include: winserver, wincore, winsql"
}
variable "os_disk_storage_account_type" {
description = "The Type of Storage Account which should back this the Internal OS Disk. Possible values include Standard_LRS, StandardSSD_LRS and Premium_LRS."
default = "StandardSSD_LRS"
}
variable "generate_admin_ssh_key" {
description = "Generates a secure private key and encodes it as PEM."
default = true
}
variable "admin_ssh_key_data" {
description = "specify the path to the existing SSH key to authenticate Linux virtual machine"
default = ""
}
variable "disable_password_authentication" {
description = "Should Password Authentication be disabled on this Virtual Machine? Defaults to true."
default = true
}
variable "admin_username" {
description = "The username of the local administrator used for the Virtual Machine."
default = "azureadmin"
}
variable "admin_password" {
description = "The Password which should be used for the local-administrator on this Virtual Machine"
default = null
}
variable "nsg_inbound_rules" {
description = "List of network rules to apply to network interface."
default = []
}
variable "dedicated_host_id" {
description = "The ID of a Dedicated Host where this machine should be run on."
default = null
}
variable "license_type" {
description = "Specifies the type of on-premise license which should be used for this Virtual Machine. Possible values are None, Windows_Client and Windows_Server."
default = "None"
}
variable "nsg_diag_logs" {
description = "NSG Monitoring Category details for Azure Diagnostic setting"
default = ["NetworkSecurityGroupEvent", "NetworkSecurityGroupRuleCounter"]
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}