This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
forked from hashicorp/terraform-google-nomad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
executable file
·76 lines (60 loc) · 2.62 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These parameters must be supplied when consuming this module.
# ---------------------------------------------------------------------------------------------------------------------
variable "gcp_project" {
description = "The name of the GCP Project where all resources will be launched."
type = string
}
variable "gcp_region" {
description = "The region in which all GCP resources will be launched."
type = string
}
variable "gcp_zone" {
description = "The region in which all GCP resources will be launched."
type = string
}
# Nomad Server cluster
variable "nomad_consul_server_cluster_name" {
description = "The name of the Nomad/Consul Server cluster. All resources will be namespaced by this value. E.g. nomad-server-prod"
type = string
}
variable "nomad_consul_server_source_image" {
description = "The Google Image used to launch each node in the Nomad/Consul Server cluster."
type = string
}
# Nomad Client cluster
variable "nomad_client_cluster_name" {
description = "The name of the Nomad client cluster. All resources will be namespaced by this value. E.g. consul-server-prod"
type = string
}
variable "nomad_client_source_image" {
description = "The Google Image used to launch each node in the Nomad client cluster."
type = string
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
# Nomad Server cluster
variable "nomad_consul_server_cluster_size" {
description = "The number of nodes to have in the Nomad Server cluster. We strongly recommended that you use either 3 or 5."
type = number
default = 3
}
variable "nomad_consul_server_cluster_machine_type" {
description = "The machine type of the Compute Instance to run for each node in the Vault cluster (e.g. n1-standard-1)."
type = string
default = "g1-small"
}
# Nomad Client cluster
variable "nomad_client_cluster_size" {
description = "The number of nodes to have in the Nomad client cluster. This number is arbitrary."
type = number
default = 3
}
variable "nomad_client_machine_type" {
description = "The machine type of the Compute Instance to run for each node in the Nomad client cluster (e.g. n1-standard-1)."
type = string
default = "g1-small"
}