-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
46 lines (36 loc) · 1.1 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
variable "dcos_install_mode" {
description = "specifies which type of command to execute. Options: install or upgrade"
default = "install"
}
variable "dcos_aws_region" {
description = "specifies which type of command to execute. Options: install or upgrade"
default = "us-west-2"
}
data "http" "whatismyip" {
url = "http://whatismyip.akamai.com/"
}
module "dcos" {
source = "dcos-terraform/dcos/aws"
dcos_instance_os = "rhel_7.3"
cluster_name = "iot-dcos"
ssh_public_key_file = "~/.ssh/ccm.pub"
admin_ips = ["${data.http.whatismyip.body}/32"]
num_masters = "3"
num_private_agents = "4"
num_public_agents = "2"
dcos_version = "1.12.1"
dcos_security = "strict"
dcos_variant = "ee"
dcos_license_key_contents = "<insert license key>"
# dcos_variant = "open"
dcos_install_mode = "${var.dcos_install_mode}"
}
output "masters-ips" {
value = "${module.dcos.masters-ips}"
}
output "cluster-address" {
value = "${module.dcos.masters-loadbalancer}"
}
output "public-agents-loadbalancer" {
value = "${module.dcos.public-agents-loadbalancer}"
}