-
Notifications
You must be signed in to change notification settings - Fork 27
/
variables.tf
222 lines (173 loc) · 5.51 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
##############################################################################
# Variables File
#
# Here is where we store the default values for all the variables used in our
# Terraform code. If you create a variable with no default, the user will be
# prompted to enter it (or define it via config file or command line flags.)
variable "resource_group" {
description = "The name of your Azure Resource Group."
default = "Azure-Consul-Demo"
}
variable "demo_prefix" {
description = "This prefix will be included in the name of some resources."
default = "demostack"
}
variable "hostname" {
description = "VM hostname. Used for local hostname, DNS, and storage-related names."
default = "demostack"
}
variable "location" {
description = "The region where the virtual network is created."
default = "centralus"
}
variable "virtual_network_name" {
description = "The name for your virtual network."
default = "vnet"
}
variable "address_space" {
description = "The address space that is used by the virtual network. You can supply more than one address space. Changing this forces a new resource to be created."
default = "10.0.0.0/16"
}
variable "subnet_prefix" {
description = "The address prefix to use for the subnet."
default = "10.0.10.0/24"
}
variable "storage_account_tier" {
description = "Defines the storage tier. Valid options are Standard and Premium."
default = "Standard"
}
variable "storage_disk_size" {
description = "Defines the OS disk size. minimum is 70"
default = "100"
}
variable "storage_replication_type" {
description = "Defines the replication type to use for this storage account. Valid options include LRS, GRS etc."
default = "LRS"
}
variable "vm_size" {
description = "Specifies the size of the virtual machine."
default = "Standard_D4_v3"
}
variable "image_publisher" {
description = "Name of the publisher of the image (az vm image list)"
default = "Canonical"
}
variable "image_offer" {
description = "Name of the offer (az vm image list)"
default = "Ubuntuservers"
}
variable "image_sku" {
description = "Image SKU to apply (az vm image list)"
default = "16.04-LTS"
}
variable "image_version" {
description = "Version of the image to apply (az vm image list)"
default = "latest"
}
variable "admin_username" {
description = "Administrator user name"
default = "admin"
}
variable "admin_password" {
description = "Administrator password"
default = "replace-with-your-password"
}
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 "consul_url" {
description = "The url to download Consul."
default = "https://releases.hashicorp.com/consul/1.2.2/consul_1.2.2_linux_amd64.zip"
}
variable "consul_ent_url" {
description = "The url to download Consul."
default = "https://releases.hashicorp.com/consul/1.2.2/consul_1.2.2_linux_amd64.zip"
}
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 "nomad_url" {
description = "The url to download nomad."
default = "https://releases.hashicorp.com/nomad/0.8.6/nomad_0.8.6_linux_amd64.zip"
}
variable "nomad_ent_url" {
description = "The url to download nomad."
default = "https://releases.hashicorp.com/nomad/0.8.6/nomad_0.8.6_linux_amd64.zip"
}
variable "vault_url" {
description = "The url to download vault."
default = "https://releases.hashicorp.com/vault/0.11.1/vault_0.11.1_linux_amd64.zip"
}
variable "vault_ent_url" {
description = "The url to download vault."
default = "https://s3-us-west-2.amazonaws.com/hc-enterprise-binaries/vault/ent/0.11.1/vault-enterprise_0.11.1%2Bent_linux_amd64.zip"
}
variable "owner" {
description = "IAM user responsible for lifecycle of cloud resources used for training"
}
variable "TTL" {
description = "Hours after which resource expires, used by reaper. Do not use any unit. -1 is infinite."
default = "240"
}
variable "enterprise" {
description = "do you want to use the enterprise version of the binaries"
default = false
}
variable "subscription_id" {
description = "your subscription ID for Vault KMS Auto Unseal"
}
variable "tenant_id" {
description = "your tenant ID for Vault KMS Auto Unseal"
}
variable "client_id" {
description = "your client ID for Vault KMS Auto Unseal"
}
variable "client_secret" {
description = "your client ID for Vault KMS Auto Unseal"
}
variable "vaultlicense" {
description = "Enterprise License for Vault"
default = ""
}
variable "consullicense" {
description = "Enterprise License for Consul"
default = ""
}
variable "ca_key_algorithm" {
default = ""
}
variable "ca_private_key_pem" {
default = ""
}
variable "ca_cert_pem" {
default = ""
}
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 = 1
}
variable "cni_plugin_url" {
description = "The url to download teh CNI plugin for nomad."
default = "https://github.com/containernetworking/plugins/releases/download/v0.8.2/cni-plugins-linux-amd64-v0.8.2.tgz"
}
variable "primary_datacenter" {
description = "the primary datacenter for mesh gateways"
default = ""
}