-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathvariables.tf
185 lines (148 loc) · 3.82 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
locals {
# Common tags to be assigned to all resources
common_tags = {
Name = var.name
owner = var.owner
se-region = var.se-region
terraform = true
purpose = var.purpose
ttl = var.TTL
}
}
variable "se-region" {
description = "Mandatory tags for the SE organization"
}
variable "purpose" {
description = <<EOH
purpose to be added to the default tags
EOH
}
variable "name" {
description = <<EOH
Name to be added to the default tags
EOH
}
variable "host_access_ip" {
description = "your IP address to allow ssh to work"
default = []
}
variable "clusters" {
description = "Map of Cluster to deploy"
type = map(any)
default = {
primary = {
region = "eu-west-2"
namespace = "primarystack"
},
secondary = {
region = "eu-east-1"
namespace = "secondarystack"
},
tertiary = {
region = "ap-northeast-1"
namespace = "tertiarystack"
},
}
}
variable "servers" {
description = "The number of data servers (consul, nomad, etc)."
default = "3"
}
variable "workers" {
description = "The number of nomad worker vms to create."
default = "3"
}
variable "fabio_url" {
description = "The url download fabio."
default = "https://github.com/fabiolb/fabio/releases/download/v1.5.7/fabio-1.5.7-go1.9.2-linux_amd64"
}
variable "cni_version" {
description = "The version of the CNI plugin for nomad."
default = "1.6.0"
}
variable "owner" {
description = "IAM user responsible for lifecycle of cloud resources used for training"
}
variable "created-by" {
description = "Tag used to identify resources created programmatically by Terraform"
default = "Terraform"
}
variable "sleep-at-night" {
description = "Tag used by reaper to identify resources that can be shutdown at night"
default = true
}
variable "TTL" {
description = "Hours after which resource expires, used by reaper. Do not use any unit. -1 is infinite."
default = "240"
}
variable "vpc_cidr_block" {
description = "The top-level CIDR block for the VPC."
default = "10.1.0.0/16"
}
variable "cidr_blocks" {
description = "The CIDR blocks to create the workstations in."
default = ["10.1.1.0/24", "10.1.2.0/24", "10.1.3.0/24"]
}
variable "zone_id" {
description = "The CIDR blocks to create the workstations in."
default = ""
}
variable "public_key" {
description = "The contents of the SSH public key to use for connecting to the cluster."
}
variable "enterprise" {
description = "do you want to use the enterprise version of the binaries"
default = false
}
variable "vaultlicense" {
description = "Enterprise License for Vault"
default = ""
}
variable "consullicense" {
description = "Enterprise License for Consul"
default = ""
}
variable "nomadlicense" {
description = "Enterprise License for Nomad"
default = ""
}
variable "instance_type_server" {
description = "The type(size) of data servers (consul, nomad, etc)."
default = "t4g.xlarge"
}
variable "instance_type_worker" {
description = "The type(size) of data workers (consul, nomad, etc)."
default = "t4g.xlarge"
}
variable "windows_instance_type_worker" {
description = "The type(size) of data worker (consul, nomad, etc)."
default = "t3.medium"
}
variable "consul_gossip_key" {
default = ""
}
variable "consul_master_token" {
default = ""
}
variable "consul_join_tag_value" {
default = ""
}
variable "nomad_gossip_key" {
default = ""
}
variable "run_nomad_jobs" {
default = "0"
}
# variable "primary_datacenter" {
# description = "the primary datacenter for mesh gateways"
# default = ""
# }
variable "f5_username" {
description = "F5 username"
default = "admin"
}
variable "f5_password" {
description = "F5 password"
default = "admin"
sensitive = true
}