-
Notifications
You must be signed in to change notification settings - Fork 76
/
vars.tf.go
300 lines (237 loc) · 5.75 KB
/
vars.tf.go
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
package src
const Vars = `
####################
# Environment
####################
variable "environment" {
default = "throttle-test"
}
####################
# OTC auth config
####################
variable "region" {
default = "eu-de"
}
variable "otc_domain" {
default = "eu-de"
}
variable "auth_url" {
default = "https://iam.eu-de.otc.t-systems.com:443/v3"
}
variable "tenant_name" {
default = "eu-de"
}
variable "access_key" {
default = ""
}
variable "secret_key" {
default = ""
}
variable "key" {
default = ""
}
####################
# VPC vars
####################
variable "vpc_cidr" {
description = "CIDR of the VPC"
default = "10.1.0.0/24"
}
####################
# Subnet vars
####################
variable "subnet_cidr" {
description = "CIDR of the Subnet"
default = "10.1.0.0/24"
}
variable "subnet_gateway_ip" {
description = "Default gateway of the Subnet"
default = "10.1.0.1"
}
variable "subnet_primary_dns" {
description = "Primary DNS server of the Subnet"
default = "100.125.4.25"
}
variable "subnet_secondary_dns" {
description = "Secondary DNS server of the Subnet"
default = "100.125.129.199"
}
####################
# RDS vars
####################
variable "rds_root_password" {
description = "RDS Root Password"
default = "TryThisVeryG00dOne!"
}
variable "rds_type" {
description = "RDS Type"
default = "MySQL"
}
variable "rds_version" {
description = "Version of RDS"
default = "8.0"
}
variable "rds_port" {
description = "Port of RDS"
default = "3306"
}
variable "rds_az" {
description = "Availability zones of RDS (minimum 2)"
default = ["eu-de-01" , "eu-de-02"]
}
variable "rds_volume_type" {
description = "Volume type of RDS (COMMON or ULTRAHIGH)"
default = "COMMON"
}
variable "rds_volume_size" {
description = "Volume size of RDS in GB (40 minimum)"
default = "40"
}
variable "rds_flavor" {
description = "Flavor of RDS"
default = "rds.mysql.c2.medium.ha"
}
variable "rds_ha_mode" {
description = "Use HA RDS service"
type = string
default = "async" # or 'null' in non-ha
}
variable "rds_db" {
description = "Name of the RDS schema"
default = "throttle"
}
####################
# ECS vars
####################
variable "availability_zone1" {
description = "Availability Zone 1 (Biere)"
default = "eu-de-01"
}
variable "availability_zone2" {
description = "Availability Zone 2 (Magdeburg)"
default = "eu-de-02"
}
variable "availability_zone3" {
description = "Availability Zone 3 (Biere)"
default = "eu-de-03"
}
variable "image_name_server-1" {
description = "Name of the image"
default = "Standard_Ubuntu_20.04_latest"
}
variable "image_name_server-2" {
description = "Name of the image"
default = "Standard_Ubuntu_20.04_latest"
}
variable "flavor_id" {
description = "ID of Flavor"
default = "c3.large.4"
}
variable "public_key" {
description = "ssh public key to use"
default = ""
}
variable "power_state" {
description = "Power state of ECS instances"
default = "active"
}
variable "deploy_wireguard" {
description = "Deploy a Wireguard Server to access the internal network"
default = false
type = bool
}
variable "wg_server_address" {
description = "Ip address of the Wireguard Server"
default = "10.2.0.1/24"
}
variable "wg_server_port" {
description = "Port of the Wireguard Server"
default = "51820"
}
variable "wg_server_private_key" {
description = "Wireguard Server Private Key"
default = ""
}
variable "wg_server_public_key" {
description = "Wireguard Server Public Key"
default = ""
}
variable "wg_peer_address" {
description = "Wireguard Server Public Key"
default = "10.2.0.2/24"
}
variable "wg_peer_public_key" {
description = "Wireguard Peer Public Key"
default = ""
}
####################
# DNS vars
####################
variable "create_dns" {
description = "Create DNS entries"
type = bool
default = false
}
variable "rancher_host" {
description = "Public host of the rancher instance"
default = "rancher"
}
variable "rancher_domain" {
description = "Public domain of the rancher instance"
default = "example.com"
}
variable "admin_email" {
description = "Admin email address for DNS and LetsEncrypt"
default = "nobody@example.com"
}
####################
# throttle/K8S vars
####################
variable "throttle_registry" {
description = "replace docker.io registry with a customized endpoint for throttle installation"
default = ""
}
variable "throttle_version" {
description = "throttle install version or channel, e.g stable/latest, v1.21.3+throttle1"
default = "stable"
}
variable "token" {
description = "Access Token for throttle Nodes (required since v1.20.9+throttle1"
default = ""
}
variable "cert-manager_version" {
description = "Cert-Manager chart version"
default = "v1.5.3"
}
####################
# Rancher vars
####################
variable "registry" {
description = "Registry for Rancher images"
default = "mtr.external.otc.telekomcloud.com"
}
variable "system-default-registry" {
description = "System Registry for throttle"
default = "mtr.external.otc.telekomcloud.com"
}
variable "repo_certmanager" {
description = "Repository of cert-manager Images"
default = "quay.io/jetstack"
}
variable "image_traefik" {
description = "Image for Traefik"
default = "rancher/mirrored-library-traefik"
}
variable "rancher_version" {
description = "Version of Rancher app"
default = "v2.6.3"
}
variable "rancher_tag" {
description = "Tag of Rancher image"
default = "v2.6.3"
}
variable "admin_password" {
description = "Bootstrap Password for Rancher 2.6"
default = "admin"
}
`