This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathvariables.tf
97 lines (80 loc) · 4.17 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These parameters must be supplied when consuming this module.
# ---------------------------------------------------------------------------------------------------------------------
variable "gcp_project_id" {
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 "consul_server_cluster_name" {
description = "The name of the Consul Server cluster. All resources will be namespaced by this value. E.g. consul-server-prod"
type = string
}
variable "consul_client_cluster_name" {
description = "The name of the Consul Client example cluster. All resources will be namespaced by this value. E.g. consul-client-example"
type = string
}
variable "consul_server_cluster_tag_name" {
description = "The tag the consul server Compute Instances will look for to automatically discover each other and form a cluster. TIP: If running more than one Consul Server cluster, each cluster should have its own unique tag name. If you're not sure what to put for this value, just use the value entered in var.cluster_name."
type = string
}
variable "consul_client_cluster_tag_name" {
description = "A tag that will uniquely identify the Consul Clients. In this example, the Consul Server cluster uses this tag to identify the Consul Client servers that should have query permissions."
type = string
}
variable "consul_server_source_image" {
description = "The Google Image used to launch each node in the Consul Server cluster."
type = string
}
variable "consul_client_source_image" {
description = "The Google Image used to launch each node in the Consul Client cluster."
type = string
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "image_project_id" {
description = "The name of the GCP Project where the image is located. Useful when using a separate project for custom images. If empty, var.gcp_project_id will be used."
type = string
default = null
}
variable "network_project_id" {
description = "The name of the GCP Project where the network is located. Useful when using networks shared between projects. If empty, var.gcp_project_id will be used."
type = string
default = null
}
variable "consul_server_cluster_size" {
description = "The number of nodes to have in the Consul Server cluster. We strongly recommended that you use either 3 or 5."
type = number
default = 3
}
variable "consul_client_cluster_size" {
description = "The number of nodes to have in the Consul Client example cluster. Any number of nodes is permissible, though 3 is usually enough to test.."
type = number
default = 3
}
variable "consul_server_allowed_inbound_cidr_blocks_http_api" {
description = "A list of CIDR-formatted IP address ranges from which the Compute Instances will allow API connections to Consul."
type = list(string)
default = ["0.0.0.0/0"]
}
variable "consul_server_allowed_inbound_cidr_blocks_dns" {
description = "A list of CIDR-formatted IP address ranges from which the Compute Instances will allow TCP DNS and UDP DNS connections to Consul."
type = list(string)
default = []
}
variable "consul_client_allowed_inbound_cidr_blocks_http_api" {
description = "A list of CIDR-formatted IP address ranges from which the Compute Instances will allow API connections to Consul."
type = list(string)
default = ["0.0.0.0/0"]
}
variable "consul_client_allowed_inbound_cidr_blocks_dns" {
description = "A list of CIDR-formatted IP address ranges from which the Compute Instances will allow TCP DNS and UDP DNS connections to Consul."
type = list(string)
default = []
}