forked from cuongdo/cockroachdb-terraform-gce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
70 lines (58 loc) · 1.56 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
# Port used for the load balancer and backends.
variable "sql_port" {
default = "26257"
}
variable "http_port" {
default = "8080"
}
# List of stores each with its own --store flag. (--store flags from the cockroach binary).
variable "stores" {
default = "--store=data"
}
# GCE region to use.
variable "gce_region" {
default = "us-east1"
}
# GCE zone to use.
variable "gce_zone" {
default = "us-east1-b"
}
# GCE image name.
variable "gce_image" {
default = "ubuntu-os-cloud/ubuntu-1510-wily-v20151021"
}
# GCE machine type.
variable "gce_machine_type" {
default = "n1-standard-4"
}
# Path to the cockroach binary. An empty value results in the latest official
# binary being used.
variable "cockroach_binary" {
default = ""
}
# Name of the ssh key pair to use for GCE instances.
# The public key will be passed at instance creation, and the private
# key will be used by the local ssh client.
#
# The path is expanded to: ~/.ssh/<key_name>.pub
#
# If you use `gcloud compute ssh` or `gcloud compute copy-files`, you may want
# to leave this as "google_compute_engine" for convenience.
variable "key_name" {
default = "google_compute_engine"
}
# Number of instances to start.
variable "num_instances" {
}
# SHA of the cockroach binary to pull down. If none, the latest is fetched.
variable "cockroach_sha" {
default = ""
}
# SHA of the block_writer binary to pull down. If none, the latest is fetched.
variable "block_writer_sha" {
default = ""
}
# SHA of the photos binary to pull down. If none, the latest is fetched.
variable "photos_sha" {
default = ""
}