-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathvariables.tf
147 lines (118 loc) · 3.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
variable "pki_path" {
description = "Path to mount the PKI secrets engine"
default = "pki"
}
variable "pki_ttl" {
description = "Default TTL for PKI secrets engine in seconds"
default = 31536000
}
variable "pki_max_ttl" {
description = "Max TTL for the PKI secrets engine in seconds"
default = 315360000
}
variable "vault_base_url" {
description = <<EOF
Base URL where your Vault cluster can be accessed. This is used to configure the CRL and CA
endpoints. Do not include a trailing slash.
EOF
type = list(string)
default = ["https://vault.service.consul:8200"]
}
# --------------------------------------------------------------------------------------------------
# CA and certificate settings
# --------------------------------------------------------------------------------------------------
variable "ca_cn" {
description = "The CN of the CA certificate"
default = "Vault TLS Authority"
}
variable "ca_san" {
description = <<EOF
Specifies the requested Subject Alternative Names, in a comma-delimited list.
These can be host names or email addresses; they will be parsed into their respective fields.
EOF
default = ""
}
variable "ca_ip_san" {
description = "Specifies the requested IP Subject Alternative Names, in a comma-delimited list."
default = ""
}
variable "ca_exclude_cn_from_sans" {
description = <<EOF
If set, the given common_name will not be included in DNS or Email Subject Alternate Names
(as appropriate).
Useful if the CN is not a hostname or email address, but is instead some human-readable identifier.
EOF
default = true
}
variable "ou" {
description = <<EOF
Specifies the OU (OrganizationalUnit) values in the subject field of the resulting certificate.
This is a comma-separated string or JSON array.
EOF
default = ""
}
variable "organization" {
description = <<EOF
Specifies the O (Organization) values in the subject field of the resulting certificate.
This is a comma-separated string or JSON array.
EOF
default = ""
}
variable "country" {
description = <<EOF
Specifies the C (Country) values in the subject field of the resulting certificate.
This is a comma-separated string or JSON array.
EOF
type = list(string)
default = []
}
variable "locality" {
description = <<EOF
Specifies the L (Locality) values in the subject field of the resulting certificate.
This is a comma-separated string or JSON array.
EOF
type = list(string)
default = []
}
variable "province" {
description = <<EOF
Specifies the ST (Province) values in the subject field of the resulting certificate.
This is a comma-separated string or JSON array.
EOF
type = list(string)
default = []
}
variable "street_address" {
description = <<EOF
Specifies the Street Address values in the subject field of the resulting certificate.
This is a comma-separated string or JSON array.
EOF
type = list(string)
default = []
}
variable "postal_code" {
description = <<EOF
Specifies the Postal Code values in the subject field of the resulting certificate.
This is a comma-separated string or JSON array.
EOF
type = list(string)
default = []
}
# --------------------------------------------------------------------------------------------------
# CORE INTEGRATION SETTINGS
# --------------------------------------------------------------------------------------------------
variable "core_integration" {
description = <<EOF
Enable integration with the `core` module by setting some values in Consul so
that the packer templates know this module has been applied.
EOF
default = true
}
variable "consul_key_prefix" {
description = <<EOF
Path prefix to the key in Consul to set for the `core` module to know that this module has
been applied. If you change this, you have to update the
`integration_consul_prefix` variable in the core module as well.
EOF
default = "terraform/"
}