-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
190 lines (161 loc) · 3.96 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
variable "subscription_id" {
description = "Subscriptions ID to be used."
type = string
default = ""
}
variable "client_id" {
description = "Client ID from Azure."
type = string
default = ""
}
variable "client_secret" {
description = "Client secret from Azure."
type = string
default = ""
}
variable "tenant_id" {
description = "Tenant ID from Azure."
type = string
default = ""
}
variable "resource_group" {
description = "Resource group name to create."
type = string
default = ""
}
variable "location" {
description = "Location where resources should be created."
type = string
default = "centralus"
}
variable "admin_username" {
description = "Name for the admin user."
type = string
default = "azureroot"
}
variable "admin_password" {
description = "Password for admin user."
type = string
default = "Passw0rd"
}
variable "vnet_name" {
description = "Name of virtual network for VMs."
type = string
default = ""
}
variable "vnet_addr" {
description = "Network address for virtual network."
type = string
default = "10.0.0.0/16"
}
variable "subnet_name" {
description = "Name of virtual subnet."
type = string
default = ""
}
variable "subnet_addr" {
description = "Network address Name of virtual subnet."
type = string
default = "10.0.1.0/24"
}
variable "storage_account" {
description = "Storage to use for VMs."
type = string
default = "storage:rg"
}
variable "storage_tier" {
description = "Storage tier to create storage account."
type = string
default = "Standard"
}
variable "storage_repl" {
description = "Storage replication type to create storage account."
type = string
default = "LRS"
}
variable "add_pub_ip" {
description = "Add public IP to VMs."
type = bool
default = false
}
variable "pub_ip_persist" {
description = "Set if public IP for VMs is Dynamic or Static."
type = bool
default = false
}
variable "add_boot_diag" {
description = "Add boot diagnostics to VMs."
type = bool
default = true
}
variable "vm_count" {
description = "Number of VMs to instanciate."
type = number
default = 1
}
variable "vm_image" {
description = "String with data about image to use."
type = string
default = "Canonical:0001-com-ubuntu-minimal-focal-daily:minimal-20_04-daily-lts-gen2:latest"
}
variable "vm_name_prefix" {
description = "Name prefix for VM name."
type = string
default = "instance"
}
variable "vm_size" {
description = "Azure size for VM."
type = string
default = "Standard_B1ms"
}
variable "vm_disk_type" {
description = "Azure disk size for VM."
type = string
default = "Standard_LRS"
}
variable "vm_disk_size" {
description = "Azure attached disk size for VM."
type = string
default = ""
}
variable "vm_net_accel" {
description = "Azure network acceleration for VM."
type = bool
default = true
}
variable "cloudinit" {
description = "Azure cloudinit file for VM."
type = string
default = "files/cloud-init.yaml"
}
variable "vm_swap_size" {
description = "Azure swap size for VM."
type = string
default = "2048"
}
variable "nsg_name" {
description = "Network security group name."
type = string
default = ""
}
variable "nsg_rules" {
description = "Network Security Group Rules."
type = map(any)
default = {
name = ""
direction = ""
access = ""
protocol = ""
source_port_range = ""
destination_port_range = ""
source_address_prefix = ""
destination_address_prefix = ""
}
}
variable "tags" {
description = "Tags for resources."
type = map(any)
default = {
activity = ""
}
}