-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path3_nodes.tf
77 lines (66 loc) · 2.41 KB
/
3_nodes.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module "openshift_bootstrap" {
source = "./modules/node"
cluster_name = var.cluster_name
cluster_basedomain = var.cluster_basedomain
node_count = var.count_bootstrap
plan = var.plan_master
facility = var.facility
ssh_private_key_path = var.ssh_private_key_path
project_id = var.project_id
cf_zone_id = var.cf_zone_id
bastion_ip = module.bastion.lb_ip
node_type = "bootstrap"
depends = [module.prepare_openshift.finished]
}
module "dns_bootstrap" {
source = "./modules/dns"
cluster_name = var.cluster_name
cluster_basedomain = var.cluster_basedomain
cf_zone_id = var.cf_zone_id
node_type = "bootstrap"
node_ips = module.openshift_bootstrap.node_ip
}
module "openshift_masters" {
source = "./modules/node"
cluster_name = var.cluster_name
cluster_basedomain = var.cluster_basedomain
node_count = var.count_master
plan = var.plan_master
facility = var.facility
ssh_private_key_path = var.ssh_private_key_path
project_id = var.project_id
cf_zone_id = var.cf_zone_id
bastion_ip = module.bastion.lb_ip
node_type = "master"
depends = [module.prepare_openshift.finished]
}
module "dns_masters" {
source = "./modules/dns"
cluster_name = var.cluster_name
cluster_basedomain = var.cluster_basedomain
cf_zone_id = var.cf_zone_id
node_type = "master"
node_ips = module.openshift_masters.node_ip
}
module "openshift_workers" {
source = "./modules/node"
cluster_name = var.cluster_name
cluster_basedomain = var.cluster_basedomain
node_count = var.count_compute
plan = var.plan_compute
facility = var.facility
ssh_private_key_path = var.ssh_private_key_path
project_id = var.project_id
cf_zone_id = var.cf_zone_id
bastion_ip = module.bastion.lb_ip
node_type = "worker"
depends = [module.prepare_openshift.finished]
}
module "dns_workers" {
source = "./modules/dns"
cluster_name = var.cluster_name
cluster_basedomain = var.cluster_basedomain
cf_zone_id = var.cf_zone_id
node_type = "worker"
node_ips = module.openshift_workers.node_ip
}