-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
48 lines (44 loc) · 2.24 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
module "sdn_network" {
source = "./modules/sdn_network"
zone = var.zone
}
module "dbaas_pgsql" {
source = "./modules/dbaas_pgsql"
dbaas_plan = var.dbaas_plan
zone = var.zone
private_sdn_network_be = module.sdn_network.private_sdn_network_be
}
module "proxy" {
source = "./modules/proxy"
ssh_key_public = var.ssh_key_public
zone = var.zone
pgpool_proxy_plan = var.pgpool_proxy_plan
private_sdn_network_proxy = module.sdn_network.private_sdn_network_proxy
private_sdn_network_be = module.sdn_network.private_sdn_network_be
dbaas_pgsql_hosts = module.dbaas_pgsql.dbaas_pgsql_hosts
dbaas_pgsql_database = module.dbaas_pgsql.dbaas_pgsql_database
dbaas_pgsql_port = module.dbaas_pgsql.dbaas_pgsql_port
dbaas_pgsql_username = module.dbaas_pgsql.dbaas_pgsql_username
dbaas_pgsql_password = module.dbaas_pgsql.dbaas_pgsql_password
dbaas_pgsql_default_username = module.dbaas_pgsql.dbaas_pgsql_default_username
dbaas_pgsql_default_password = module.dbaas_pgsql.dbaas_pgsql_default_password
dbaas_pgsql_monitor_username = module.dbaas_pgsql.dbaas_pgsql_monitor_username
dbaas_pgsql_monitor_password = module.dbaas_pgsql.dbaas_pgsql_monitor_password
}
module "server" {
source = "./modules/server"
ssh_key_public = var.ssh_key_public
private_sdn_network_client = module.sdn_network.private_sdn_network_client
zone = var.zone
dbaas_pgsql_database = module.dbaas_pgsql.dbaas_pgsql_database
dbaas_pgsql_username = module.dbaas_pgsql.dbaas_pgsql_username
dbaas_pgsql_password = module.dbaas_pgsql.dbaas_pgsql_password
}
module "loadbalancer" {
source = "./modules/loadbalancer"
zone = var.zone
proxy_private_ip_addresses = module.proxy.proxy_private_ip_addresses
private_sdn_network_proxy = module.sdn_network.private_sdn_network_proxy
private_sdn_network_client = module.sdn_network.private_sdn_network_client
private_sdn_network_client_address = module.sdn_network.private_sdn_network_client_address
}