-
Notifications
You must be signed in to change notification settings - Fork 10
/
variables.tf
118 lines (102 loc) · 3.79 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
# ---------------------------------------------------------------------------------------------------------------------
# Resource Group
# ---------------------------------------------------------------------------------------------------------------------
variable "create_resource_group" {
description = "Do you want the Terraform to Create the Resource Group (true) or use an Existing Resource Group (false)"
default = true
}
variable "resource_group_name" {
description = "Name of the Azure Resource Group"
default = "azure-fast-ha5"
}
# ---------------------------------------------------------------------------------------------------------------------
# Resource Location
# ---------------------------------------------------------------------------------------------------------------------
variable "resource_location" {
description = "Location of all resources to be created"
default = "westeurope"
}
# ---------------------------------------------------------------------------------------------------------------------
# Virtual Network
# ---------------------------------------------------------------------------------------------------------------------
variable "create_virtual_network" {
description = "Terraform to create Virtual Network (true) or use an existing Virtual Networks (false)"
default = true
}
variable "virtual_network_name" {
description = "Name of the Azure Virtual Network"
default = "vnet"
}
variable "virtual_network_cidr" {
description = "Virtual Networks CIDR Block"
default = "10.0.0.0/24"
}
# ---------------------------------------------------------------------------------------------------------------------
# Subnets
# ---------------------------------------------------------------------------------------------------------------------
variable "create_virtual_network_subnets" {
description = "Terraform to create Virtual Network subnets (true) or use existing subnets (false)"
default = true
}
variable "virtual_network_subnets" {
description = "Subnet Map for Creation"
default = {
management = {
address_prefixes = ["10.0.0.0/28"]
},
ha2 = {
address_prefixes = ["10.0.0.16/28"]
},
private = {
address_prefixes = ["10.0.0.32/28"]
},
public = {
address_prefixes = ["10.0.0.48/28"]
},
loadbalancer = {
address_prefixes = ["10.0.0.64/28"]
}
}
}
# Ensure you keep them names vmseries0 and vmseries1 or you will have to change reference in the TF files.
variable "vmseries" {
description = "Definition of the VM-Series deployments"
default = {
vmseries0 = {
admin_username = "pandemo"
admin_password = "Pal0Alto!"
instance_size = "Standard_DS3_v2"
# License options "byol", "bundle1", "bundle2"
license = "bundle1"
version = "10.0.4"
management_ip = "10.0.0.5"
ha2_ip = "10.0.0.20"
private_ip = "10.0.0.37"
public_ip = "10.0.0.52"
availability_zone = 1
# If not licensing authcode is needed leave this set to a value of a space (ie " ")
authcodes = " "
}
vmseries1 = {
admin_username = "pandemo"
admin_password = "Pal0Alto!"
instance_size = "Standard_DS3_v2"
# License options "byol", "bundle1", "bundle2"
license = "bundle1"
version = "10.0.4"
management_ip = "10.0.0.4"
ha2_ip = "10.0.0.21"
private_ip = "10.0.0.36"
public_ip = "10.0.0.53"
availability_zone = 2
# If not licensing authcode is needed leave this set to a value of a space (ie " ")
authcodes = " "
}
}
}
variable "inbound_tcp_ports" {
default = [22, 80]
}
variable "inbound_udp_ports" {
default = [500, 4500]
}