-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
41 lines (37 loc) · 1.76 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
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 = module.sdn_network.private_sdn_network
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 = module.sdn_network.private_sdn_network
zone = var.zone
proxy_sdn_ip = module.proxy.proxy_sdn_ip
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
}