This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
variables.tf
184 lines (147 loc) · 4.37 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
variable "name" {
description = "Name to be used on all the resources as identifier"
}
variable "create_network" {
description = "Should be false if `network_id` is specified."
default = true
}
variable "network_id" {
description = <<DESC
The network id of the existing network used to create the subnets.
Either `network_id` or `network_name` is required if `create_network`
is set to false.
NOTE: As of today, the network has to pre-created outside this module
if you want to do cross regions networking with the vrack.
See "multiregion" example.
DESC
default = ""
}
variable "network_name" {
description = <<DESC
The network name of the existing network used to create the subnets.
Either `network_id` or `network_name` is required if `create_network`
is set to false.
NOTE: As of today, the network has to pre-created outside this module
if you want to do cross regions networking with the vrack.
See "multiregion" example.
DESC
default = ""
}
variable "cidr" {
description = "The CIDR block of the Network. (e.g. 10.0.0.0/16)"
}
variable "public_subnets" {
type = "list"
description = <<DESC
Public subnets are meant for every instances that can be
reached through the internet (e.g. NATs, LBs, Bastion hosts, ...).
Note: The NAT Gateways will be fixed to the 2nd ip of these subnets
and the allocation pools will start at the 3rd ip
DESC
default = []
}
variable "private_subnets" {
type = "list"
description = "A list of private subnets inside the VPC"
default = []
}
variable "key_pair" {
description = "The openstack key pair to be used for nat instances and bastion hosts. Can be used in conjunction with `ssh_public_keys`."
default = ""
}
variable "ssh_public_keys" {
type = "list"
description = "The ssh public keys to be used for nat instances and bastion hosts. Can be used in conjunction with `key_pair`."
default = []
}
variable "nat_instance_flavor_name" {
description = "The flavor name region that will be used for NAT Gateways."
default = ""
}
variable "nat_instance_flavor_names" {
type = "map"
description = "A map of flavor names per openstack region that will be used for NAT Gateways."
default = {
GRA1 = "s1-2"
SBG3 = "s1-2"
GRA3 = "s1-2"
SBG3 = "s1-2"
BHS3 = "s1-2"
WAW1 = "s1-2"
DE1 = "s1-2"
UK1 = "s1-2"
}
}
variable "default_nat_instance_flavor_name" {
description = "Default NAT flavor name"
default = "s1-2"
}
variable "bastion_instance_flavor_name" {
description = "The flavor name region that will be used for bastion hosts."
default = ""
}
variable "bastion_instance_flavor_names" {
type = "map"
description = "A map of flavor names per openstack region that will be used for Bastion host."
default = {
GRA1 = "s1-2"
SBG3 = "s1-2"
GRA3 = "s1-2"
SBG3 = "s1-2"
BHS3 = "s1-2"
WAW1 = "s1-2"
DE1 = "s1-2"
UK1 = "s1-2"
}
}
variable "default_bastion_instance_flavor_name" {
description = "Default Bastion flavor name"
default = "s1-2"
}
variable "enable_nat_gateway" {
description = "Should be true if you want to provision NAT Gateways for each of your private subnets"
default = false
}
variable "single_nat_gateway" {
description = "Should be true if you want to provision only one NAT Gateway for all of your private subnets"
default = false
}
variable "enable_bastion_host" {
description = "Should be true if you want to provision a bastion host in the first public subnet."
default = false
}
variable "nat_as_bastion" {
description = "Should be true if you want to make NAT Gateways act as bastion hosts."
default = false
}
variable "region" {
description = "The id of the openstack region"
}
variable "ovh_pub_nets" {
type = "map"
description = "A map of ovh public openstack network names."
default = {
GRA3 = "Ext-Net"
SBG3 = "Ext-Net"
BHS3 = "Ext-Net"
GRA1 = "Ext-Net"
SBG1 = "Ext-Net"
BHS1 = "Ext-Net"
DE1 = "Ext-Net"
WAW1 = "Ext-Net"
UK1 = "Ext-Net"
}
}
variable "default_ovh_pub_net" {
description = "Default ovh public network name"
default = "Ext-Net"
}
variable "dns_nameservers" {
type = "list"
description = "The list of dns servers to be pushed by dhcp"
default = ["213.186.33.99", "8.8.8.8"]
}
variable "metadata" {
description = "A map of metadata to add to all resources supporting it."
default = {}
}