-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
49 lines (45 loc) · 1.43 KB
/
main.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
module "upcloud_base" {
source = "./modules/upcloud-base"
zone = var.zone
ssh_key_public = var.ssh_key_public
lb_network = var.lb_network
nas_network = var.nas_network
db_network = var.db_network
}
module "upcloud_dbaas" {
source = "./modules/upcloud-dbaas"
zone = var.zone
dbaas_plan = var.dbaas_plan
redis_plan = var.redis_plan
db_sdn = module.upcloud_base.db_sdn
}
module "upcloud_nfs_server" {
source = "./modules/upcloud-nfs-server"
ssh_key_public = var.ssh_key_public
zone = var.zone
nas_plan = var.nas_plan
nas_sdn = module.upcloud_base.nas_sdn
lb_sdn = module.upcloud_base.lb_sdn
nas_network = var.nas_network
jump_host = var.jump_host
private_key = var.private_key
}
module "upcloud_www_servers" {
source = "./modules/upcloud-web-servers"
ssh_key_public = var.ssh_key_public
zone = var.zone
www_plan = var.www_plan
nas_sdn = module.upcloud_base.nas_sdn
lb_sdn = module.upcloud_base.lb_sdn
nas_ip = module.upcloud_nfs_server.nas_ip
jump_host = var.jump_host
private_key = var.private_key
db_sdn = module.upcloud_base.db_sdn
}
module "upcloud_lbaas" {
source = "./modules/upcloud-lbaas"
zone = var.zone
lbaas_plan = var.lbaas_plan
web_info = module.upcloud_www_servers.web_info
lb_sdn = module.upcloud_base.lb_sdn
}