-
Notifications
You must be signed in to change notification settings - Fork 1
/
environment-test.tf
64 lines (61 loc) · 2.21 KB
/
environment-test.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
module "test-cluster" {
source = "./cluster"
environment = "test" # environment is used for prefixing resource names
dns_servers = ["8.8.8.8"]
key_pair = "you_keypair_name"
cluster = {
bastion = {
net_prefix = "10.110.1" # only /24 networks are supported at the moment
flavor_name = "C1R2"
volume_size = 20
# volume_type = "io-nvme" # optional volume type
# availability_zone = "az1" # optional availability zone
image_name = "Centos-8-2004"
floating_ips = [ "10.100.23.11" ] # optional if you want to associate FIPs
#fixed_ips = [ "10.111.1.100" ] # optional if you want to set fixed IPs manually
open_tcp_ports_for = {
"10.100.0.0/24": [ 22 ]
}
# open_udp_ports_for = ...
}
nginx = {
net_prefix = "10.110.2"
flavor_name = "C2R4"
image_name = "Centos-8-2004"
volume_size = 20
count = 2
floating_ips = [ "10.100.23.122", "10.100.23.123" ]
#fixed_ips = [ "10.111.2.100", "10.111.2.101" ] # optional
open_tcp_ports_for = {
"bastion": [ 22 ]
"0.0.0.0/0": [ 80, 443 ]
}
}
application = {
net_prefix = "10.110.3"
flavor_name = "C4R8"
image_name = "Centos-8-2004"
volume_size = 20
count = 2
open_tcp_ports_for = {
"bastion": [ 22 ]
"nginx": [ 80 ]
}
}
mongo = {
net_prefix = "10.110.4"
flavor_name = "C4R8"
image_name = "Centos-8-2004"
volume_size = 20
count = 3
open_tcp_ports_for = {
"bastion" = [22],
"application" = [27017]
"mongo" = [27017]
}
fixed_ip = ["10.111.4.100", "10.111.4.101", "10.111.4.102"]
attach_volumes = [ ["fast_db_volume_1"], ["fast_db_volume_2"], ["fast_db_volume_3"] ]
availability_zone = "az1"
}
}
}