-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
variables.tf
165 lines (138 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
variable "deploy_to_aws" {
type = bool
default = false
description = "Deploy Hashiqube on AWS"
}
variable "deploy_to_gcp" {
type = bool
default = false
description = "Deploy Hashiqube on GCP"
}
variable "deploy_to_azure" {
type = bool
default = false
description = "Deploy Hashiqube on Azure"
}
variable "debug_user_data" {
type = bool
default = true
description = "Debug Output the User Data of the Cloud instance during Terraform Apply"
}
# You can find the full list of provisioners in the Vagrantfile
variable "vagrant_provisioners" {
description = "The list of services you would like to run in Hashiqube, the more you run, the bigger instance youd need with more RAM"
type = string
default = "basetools,docker,consul,vault,nomad,boundary,waypoint"
}
variable "whitelist_cidr" {
description = "Additional CIDR to whitelist"
type = string
default = "20.191.210.171/32" # Example: 0.0.0.0/0
}
variable "ssh_public_key" {
type = string
default = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ......"
description = "SSH public key"
}
variable "ssh_private_key" {
type = string
default = "~/.ssh/id_rsa"
description = "SSH private key"
}
variable "azure_region" {
type = string
description = "The region in which all Azure resources will be launched"
default = "Australia East"
}
variable "azure_instance_type" {
type = string
default = "Standard_DS1_v2"
description = "Azure instance type"
}
variable "aws_credentials" {
type = string
default = "~/.aws/config"
description = "AWS credentials file location"
}
variable "aws_profile" {
type = string
default = "default"
description = "AWS profile"
}
variable "aws_region" {
type = string
default = "ap-southeast-2"
description = "The region in which all AWS resources will be launched"
}
variable "aws_instance_type" {
type = string
default = "t2.medium"
description = "AWS instance type"
}
variable "gcp_credentials" {
type = string
default = "~/.gcp/credentials.json"
}
variable "gcp_project" {
type = string
default = "default"
description = "GCP project ID"
}
variable "gcp_region" {
type = string
description = "The region in which all GCP resources will be launched"
default = "australia-southeast1"
}
variable "gcp_account_id" {
type = string
description = "Account ID"
default = "sa-consul-compute-prod"
}
variable "gcp_cluster_name" {
type = string
default = "hashiqube"
description = "Cluster name"
}
variable "gcp_cluster_description" {
type = string
default = "hashiqube"
description = "the description for the cluster"
}
variable "gcp_cluster_tag_name" {
type = list(string)
default = ["hashiqube"]
description = "Cluster tag to apply"
}
variable "gcp_cluster_size" {
type = number
default = 1
description = "size of the cluster"
}
variable "gcp_zones" {
type = list(string)
description = "The zones accross which GCP resources will be launched"
default = [
"australia-southeast1-a",
"australia-southeast1-b",
"australia-southeast1-c",
]
}
variable "gcp_machine_type" {
type = string
default = "n1-standard-1"
}
variable "gcp_custom_metadata" {
description = "A map of metadata key value pairs to assign to the Compute Instance metadata"
type = map(string)
default = {}
}
variable "gcp_root_volume_disk_size_gb" {
type = number
description = "The size, in GB, of the root disk volume on each HashiQube node"
default = 16
}
variable "gcp_root_volume_disk_type" {
type = string
description = "The GCE disk type. Can be either pd-ssd, local-ssd, or pd-standard"
default = "pd-standard"
}