-
Notifications
You must be signed in to change notification settings - Fork 3
/
consul_variables.tf
64 lines (54 loc) · 1.44 KB
/
consul_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
variable "consul_address" {
type = string
default = "localhost:8500"
description = "The address of the Consul server."
}
variable "consul_use_https" {
type = bool
default = true
description = "Use HTTPS to connect to Consul"
}
locals {
http = "http"
https = "https"
scheme = var.consul_use_https ? local.https : local.http
}
variable "consul_token" {
type = string
default = null
description = "The Consul ACL token."
}
variable "consul_default_lease" {
type = number
default = 3600
description = "Default lease for Consul secrets engine"
}
variable "consul_max_lease" {
type = number
default = 3600
description = "Maximum lease for Consul secrets engine"
}
variable "consul_backend_role_name" {
type = string
default = null
description = "Name for Consul role"
}
variable "consul_policies" {
type = list(string)
default = null
description = "List of consul policies that will be attached to generated ACL tokens"
}
variable "consul_local_token" {
type = bool
default = false
description = "Specify if Consul ACL token should be kept locally."
}
variable "consul_token_type" {
type = string
default = "Client"
description = "Consul token type"
validation {
condition = can(contains(["Management", "Client"], var.consul_token_type))
error_message = "Must be one of Management or Client."
}
}