-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
156 lines (145 loc) · 2.86 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
variable "dc_names" {
type = list(string)
}
variable "domain" {
type = string
}
variable "services_domain" {
type = string
}
variable "ingress_services" {
type = list(map(string))
default = [
{
name = "jaeger-query"
host = "jaeger"
},
{
name = "grafana-internal"
host = "grafana"
},
{
name = "kibana"
host = "kibana"
},
{
name = "prometheus"
host = "prometheus"
}
]
}
variable "terminating_services" {
type = list(map(string))
default = [
{
name = "logstash-tcp"
},
{
name = "logstash-http"
},
{
name = "jaeger-query"
},
{
name = "grafana-internal"
},
{
name = "elastic-internal"
},
{
name = "prometheus"
}
]
}
variable "container_registry" {
type = string
default = "docker.io"
}
variable "artifacts_source_prefix" {
type = string
}
variable "logstash_index_prefix" {
type = string
default = "logs-"
}
variable "nomad_endpoint" {
type = string
description = "(required) nomad cluster endpoint"
}
variable "vault_endpoint" {
type = string
default = null
}
variable "consul_endpoint" {
type = string
default = null
}
variable "vault_skip_tls_verify" {
type = bool
default = false
}
variable "consul_insecure_https" {
type = bool
default = false
}
variable "cloud" {
type = string
default = ""
description = "Allow to deploy cloud specific jobs"
validation {
condition = contains(toset(["gcp", "aws", "azure", ""]), var.cloud)
error_message = "Unsupported cloud configured."
}
}
variable "jenkins_volume_external_id" {
// GCP example: projects/${var.gcp_project_id}/regions/${var.gcp_region}/disks/jenkins-master
// AWS example: vol-abc123abc123
type = string
default = ""
}
variable "nameserver_dummy_ip" {
type = string
default = "192.168.0.1"
}
variable "ca_cert_file" {
type = string
default = null
}
variable "configure_grafana" {
type = bool
default = true
}
variable "configure_monitoring" {
type = bool
default = true
}
variable "worker_jobs_constraint" {
type = list(map(string))
default = [{
attribute = "$${meta.nodeType}"
operator = "="
value = "worker"
}]
description = "List of constraints to be applied to jobs running in workers. Escape $ with double $."
}
variable "monitoring_jobs_constraint" {
type = list(map(string))
default = [{
attribute = "$${meta.nodeType}"
operator = "="
value = "monitoring"
}]
description = "List of constraints to be applied to jobs running in monitoring node. Escape $ with double $."
}
variable "azure_cloud_environment" {
type = string
default = "AzurePublicCloud"
}
variable "azure_tenant_id" {
type = string
default = ""
}
variable "azure_subscription_id" {
type = string
default = ""
}