forked from denza/tf_profitbricks_loadtest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
40 lines (32 loc) · 1.33 KB
/
main.tf
File metadata and controls
40 lines (32 loc) · 1.33 KB
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
# -----------------------------------------------------------------------------
# These templates were tested with Terraform version 0.11
# -----------------------------------------------------------------------------
terraform {
required_version = ">= 0.11.0"
}
module "infrastructure" {
source = "./modules/infrastructure"
locations = "${var.locations}"
availability_zones = "${var.availability_zones}"
cores = "${var.cores}"
ram = "${var.ram}"
image_alias = "${var.image_alias}"
image_password = "${var.image_password}"
private_ssh_key_path = "${var.private_ssh_key_path}"
public_ssh_key_path = "${var.public_ssh_key_path}"
}
module "setup_tls" {
source = "./modules/tls"
server_count = "${module.infrastructure.server_count}"
server_ips = "${module.infrastructure.server_ips}"
private_ssh_key_path = "${var.private_ssh_key_path}"
}
module "install_docker" {
source = "./modules/docker"
server_count = "${module.infrastructure.server_count}"
server_ips = "${module.infrastructure.server_ips}"
private_ssh_key_path = "${var.private_ssh_key_path}"
registry_host = "${var.registry_host}"
registry_host_username = "${var.registry_host_username}"
registry_host_password = "${var.registry_host_password}"
}