-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
96 lines (78 loc) · 3.05 KB
/
variables.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
variable "ami_id" {
description = "The ID of the AMI to run in the cluster. This should be an AMI built from the Packer template under ami/nomad-consul.json. If no AMI is specified, the template will 'just work' by using the example public AMIs. WARNING! Do not use the example AMIs in a production setting!"
default = "ami-0228f3585ebec49c8" # ubuntu16-ami
#default = "ami-0e481e2ceaf82b296" # amazon-linux-ami
}
variable "aws_region" {
description = "The AWS region to deploy into (e.g. us-east-1)."
default = "us-east-1"
}
variable "domain_name" {
description = "Domain under which all services should reside."
#default = "service.consul"
default = "coolly.ninja"
}
variable "bastion_hostname" {
description = "The hostname to assign to the bastion host (eg. bastion.${var.domain_name})"
default = "console"
}
variable "cluster_name" {
description = "What to name the cluster and all of its associated resources"
default = "koralamode"
}
variable "bastion_instance_type" {
description = "What kind of instance type to use for the bastion servers"
default = "t2.nano"
}
variable "vault_instance_type" {
description = "What kind of instance type to use for the vault servers"
default = "t2.nano"
}
variable "nomad_instance_type" {
description = "What kind of instance type to use for the nomad servers"
default = "t2.nano"
}
variable "client_instance_type" {
description = "What kind of instance type to use for the nomad clients"
default = "t2.small"
}
variable "num_vault_servers" {
description = "The number of server nodes to deploy. We strongly recommend using 3 or 5."
default = 3
}
variable "num_nomad_servers" {
description = "The number of server nodes to deploy. We strongly recommend using 3 or 5."
default = 3
}
variable "num_clients_min" {
description = "The minimum number of client nodes to deploy."
default = 3
}
variable "num_clients_max" {
description = "The maximum number of client nodes to deploy."
default = 6
}
variable "cluster_tag_key" {
description = "The tag the EC2 Instances will look for to automatically discover each other and form a cluster."
default = "Cluster"
}
variable "vault_cluster_tag_key" {
description = "The tag the EC2 Instances will look for to automatically discover each other and form a cluster."
default = "vault-servers"
}
variable "nomad_cluster_tag_key" {
description = "The tag the EC2 Instances will look for to automatically discover each other and form a cluster."
default = "nomad-servers"
}
variable "client_cluster_tag_key" {
description = "The tag the EC2 Instances will look for to automatically discover each other and form a cluster."
default = "nomad-clients"
}
variable "ssh_key_name" {
description = "The name of an EC2 Key Pair that can be used to SSH to the EC2 Instances in this cluster. Set to an empty string to not associate a Key Pair."
default = "coollyninja"
}
variable "vpc_cidr" {
description = "The overarching cidr for the entire VPC"
default = "10.10.0.0/16"
}