-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
153 lines (132 loc) · 4.07 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
variable "location" {
description = "Location of VM"
default = "canadacentral"
}
variable "tags" {
description = "Tags that will be associated to VM resources"
default = {
"exampleTag1" = "SomeValue1"
"exampleTag1" = "SomeValue2"
}
}
variable "name" {
description = "Name of the vm"
}
variable "data_disk_sizes_gb" {
description = "List of data disk sizes in gigabytes required for the VM. EG.: If 3 data disks are required then data_disk_size_gb might look like [40,100,60] for disk 1 of 40 GB, disk 2 of 100 GB and disk 3 of 60 GB"
default = []
}
variable "nic_subnetName" {
description = "Name of the subnet to which the VM NIC will connect to"
}
variable "nic_vnetName" {
description = "Name of the VNET the subnet is part of"
}
variable "nic_resource_group_name" {
description = "Name of the resourcegroup containing the VNET"
}
variable "dnsServers" {
description = "List of DNS servers IP addresses to use for this NIC, overrides the VNet-level server list"
default = null
}
variable "nic_enable_ip_forwarding" {
description = "Enables IP Forwarding on the NIC."
default = false
}
variable "nic_enable_accelerated_networking" {
description = "Enables Azure Accelerated Networking using SR-IOV. Only certain VM instance sizes are supported."
default = false
}
variable "nic_ip_configuration" {
description = "Defines how a private IP address is assigned. Options are Static or Dynamic. In case of Static also specifiy the desired privat IP address"
default = {
private_ip_address = [null]
private_ip_address_allocation = ["Dynamic"]
}
}
variable "load_balancer_backend_address_pools_ids" {
description = "List of Load Balancer Backend Address Pool IDs references to which this NIC belongs"
default = [[], [], [], [], [], [], [], [], [], [], [], []]
}
variable "security_rules" {
type = list(map(string))
default = [
{
name = "AllowAllInbound"
description = "Allow all in"
access = "Allow"
priority = "100"
protocol = "*"
direction = "Inbound"
source_port_ranges = "*"
source_address_prefix = "*"
destination_port_ranges = "*"
destination_address_prefix = "*"
},
{
name = "AllowAllOutbound"
description = "Allow all out"
access = "Allow"
priority = "105"
protocol = "*"
direction = "Outbound"
source_port_ranges = "*"
source_address_prefix = "*"
destination_port_ranges = "*"
destination_address_prefix = "*"
}
]
}
variable "public_ip" {
description = "Should the VM be assigned public IP(s). True or false."
default = false
}
variable "resource_group_name" {
description = "Name of the resourcegroup that will contain the VM resources"
}
variable "admin_username" {
description = "Name of the VM admin account"
}
variable "admin_password" {
description = "Name of the VM admin account"
}
variable "os_managed_disk_type" {
default = "Standard_LRS"
}
variable "data_managed_disk_type" {
default = "Standard_LRS"
}
variable "vm_size" {
description = "Specifies the size of the Virtual Machine. Eg: Standard_F4"
}
variable "storage_image_reference" {
default = {
publisher = "MicrosoftWindowsServer"
offer = "WindowsServer"
sku = "2016-Datacenter"
version = "latest"
}
}
variable "plan" {
description = "An optional plan block"
default = null
}
variable "storage_os_disk" {
default = {
caching = "ReadWrite"
create_option = "FromImage"
os_type = null
disk_size_gb = null
}
}
variable "license_type" {
description = "BYOL license type for those with Azure Hybrid Benefit"
default = null
}
variable "availability_set_id" {
description = "Sets the id for the availability set to use for the VM"
default = ""
}
variable "boot_diagnostic" {
default = false
}