forked from physIQ/turnkey-riak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path002-modules.tf
50 lines (46 loc) · 1.63 KB
/
002-modules.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
module "haproxy-load-balancer" {
source = "modules/haproxy-pools"
name = "haproxy"
zone = "${var.RegionInfo.zone}"
StackName = "${var.StackName}"
}
module "haproxy" {
source = "modules/haproxy"
count = "${var.instance_count.haproxy}"
name = "haproxy"
zone = "${var.RegionInfo.zone}"
google_image = "${var.google_image}"
StackName = "${var.StackName}"
ProjectName = "${var.ProjectName}"
machine_type = "${var.machine_types.haproxy}"
NetworkName = "${google_compute_network.public.name}"
salt_profiles = "${var.salt_profiles.haproxy}"
master_address = "${google_compute_instance.monitor.network_interface.0.address}"
}
module "riak" {
source = "modules/riak"
count = "${var.instance_count.riak}"
name = "riak"
zone = "${var.RegionInfo.zone}"
google_image = "${var.google_image}"
StackName = "${var.StackName}"
ProjectName = "${var.ProjectName}"
machine_type = "${var.machine_types.riak}"
NetworkName = "${google_compute_network.public.name}"
diskSSD = "${var.riak_disk_sizes.ssd}"
diskMagnetic = "${var.riak_disk_sizes.magnetic}"
salt_profiles = "${var.salt_profiles.riak}"
master_address = "${google_compute_instance.monitor.network_interface.0.address}"
}
module "logging" {
source = "modules/logging"
name = "logging"
zone = "${var.RegionInfo.zone}"
google_image = "${var.google_image}"
StackName = "${var.StackName}"
ProjectName = "${var.ProjectName}"
machine_type = "${var.machine_types.logging}"
NetworkName = "${google_compute_network.public.name}"
salt_profiles = "${var.salt_profiles.logging}"
master_address = "${google_compute_instance.monitor.network_interface.0.address}"
}