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 1
/
variables.tf
163 lines (134 loc) · 4.61 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
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 "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 "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"
},
}
}
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 "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 "active_directory_domain" {
description = "The name of the Active Directory domain, for example `consoto.com`"
default = ""
}
variable "active_directory_netbios_name" {
description = "The netbios name of the Active Directory domain, for example `consoto`"
default = ""
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}