-
Notifications
You must be signed in to change notification settings - Fork 34
/
main.tf.example
executable file
·63 lines (49 loc) · 1.54 KB
/
main.tf.example
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
provider "aws" {
region = "us-east-1"
}
variable "dcos_install_mode" {
description = "specifies which type of command to execute. Options: install or upgrade"
default = "install"
}
data "http" "whatismyip" {
url = "http://whatismyip.akamai.com/"
}
module "dcos" {
#source = "dcos-terraform/dcos/aws"
source = "git::ssh://[email protected]/dcos-terraform/terraform-aws-dcos?ref=release/v0.2"
custom_dcos_download_path = "http://downloads.mesosphere.com/dcos-enterprise/stable/1.13.0/dcos_generate_config.ee.sh"
version = "~> 0.2.0"
providers = {
aws = "aws"
}
cluster_name = "djannot"
dcos_instance_os = "centos_7.5"
ssh_public_key_file = "~/.ssh/id_rsa.pub"
#admin_ips = ["${data.http.whatismyip.body}/32"]
admin_ips = ["0.0.0.0/0"]
num_masters = "1"
# 25 private agents for 50 Kubernetes clusters
num_private_agents = "25"
num_public_agents = "2"
dcos_version = "1.13.0"
dcos_variant = "ee"
dcos_license_key_contents = "${file("./license.txt")}"
#dcos_variant = "open"
dcos_security = "strict"
private_agents_instance_type = "c4.8xlarge"
public_agents_instance_type = "c4.8xlarge"
public_agents_additional_ports = ["8443", "9999", "10500", "10339"]
tags = {
owner = "denisjannot",
expiration = "12h"
}
}
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}"
}