-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
48 lines (43 loc) · 2.18 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_mysql" {
source = "./modules/dbaas_mysql"
dbaas_plan = var.dbaas_plan
zone = var.zone
private_sdn_network_be = module.sdn_network.private_sdn_network_be
}
module "sqlproxy" {
source = "./modules/sqlproxy"
ssh_key_public = var.ssh_key_public
zone = var.zone
sqlproxy_plan = var.sqlproxy_plan
private_sdn_network_proxysql = module.sdn_network.private_sdn_network_proxysql
dbaas_mysql_hosts = module.dbaas_mysql.dbaas_mysql_hosts
dbaas_mysql_port = module.dbaas_mysql.dbaas_mysql_port
dbaas_mysql_username = module.dbaas_mysql.dbaas_mysql_username
dbaas_mysql_password = module.dbaas_mysql.dbaas_mysql_password
dbaas_mysql_monitor_username = module.dbaas_mysql.dbaas_mysql_monitor_username
dbaas_mysql_monitor_password = module.dbaas_mysql.dbaas_mysql_monitor_password
dbaas_mysql_default_username = module.dbaas_mysql.dbaas_mysql_default_username
dbaas_mysql_default_password = module.dbaas_mysql.dbaas_mysql_default_password
private_sdn_network_be = module.sdn_network.private_sdn_network_be
}
module "server" {
source = "./modules/server"
ssh_key_public = var.ssh_key_public
zone = var.zone
private_sdn_network_client = module.sdn_network.private_sdn_network_client
dbaas_mysql_database = module.dbaas_mysql.dbaas_mysql_database
dbaas_mysql_username = module.dbaas_mysql.dbaas_mysql_username
dbaas_mysql_password = module.dbaas_mysql.dbaas_mysql_password
}
module "loadbalancer" {
source = "./modules/loadbalancer"
zone = var.zone
proxy_private_ip_addresses = module.sqlproxy.proxy_private_ip_addresses
private_sdn_network_proxysql = module.sdn_network.private_sdn_network_proxysql
private_sdn_network_client = module.sdn_network.private_sdn_network_client
private_sdn_network_client_address = module.sdn_network.private_sdn_network_client_address
}