-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
57 lines (54 loc) · 2.35 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
50
51
52
53
54
55
56
57
# module invocations
module "nodebalancer" {
# source = "./modules/terraform-linode-module-nodebalancer"
source = "[email protected]:marattm/terraform-linode-module-nodebalancer.git"
region = var.LN_REGION
node_count = var.linode_web_instance_node_count
web_servers_private_ips = module.webserver.web_servers_private_ips
tags = var.linode_nodebalancer_tags
stickiness = var.linode_nodebalancer_stickiness
algorithm = var.linode_nodebalancer_algorithm
SITE = var.SITE
ENV = var.ENV
}
module "webserver" {
# source = "./modules/terraform-linode-module-webserver"
source = "[email protected]:marattm/terraform-linode-module-webserver.git"
public_key_path = var.public_key_path
root_password = var.root_password
region = var.LN_REGION
group = var.linode_web_instance_group
image = var.linode_web_instance_image
instance_type = var.linode_web_instance_type
node_count = var.linode_web_instance_node_count
tags = var.linode_web_instance_tags
SITE = var.SITE
ID = var.ID
DOMAIN = var.DOMAIN
backups_enabled = var.linode_web_instance_backups_enabled
}
module "dbserver" {
# source = "./modules/terraform-linode-module-dbserver"
source = "[email protected]:marattm/terraform-linode-module-dbserver.git"
public_key_path = var.public_key_path
root_password = var.root_password
region = var.LN_REGION
group = var.linode_db_instance_group
image = var.linode_db_instance_image
instance_type = var.linode_db_instance_type
node_count = var.linode_db_instance_node_count
tags = var.linode_db_instance_tags
SITE = var.SITE
ID = var.ID
DOMAIN = var.DOMAIN
backups_enabled = var.linode_db_instance_backups_enabled
}
module "network" {
# source = "./modules/terraform-linode-module-network"
source = "[email protected]:marattm/terraform-linode-module-network.git"
linode_ids = module.webserver.web_linode_ids
db_linode_ids = module.dbserver.db_linode_ids
web_servers_private_ips = module.webserver.web_servers_private_ips
SITE = var.SITE
ENV = var.ENV
}