-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathvariables.tf
96 lines (77 loc) · 2.46 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
# --------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# --------------------------------------------------------------------------------------------------
variable "ssh_user" {
description = "SSH user to allow SSH access"
default = "ubuntu"
}
variable "ttl" {
description = "TTL for the certificate in seconds"
default = 300
}
variable "max_ttl" {
description = "Max TTL for certificate renewal"
default = 86400
}
# --------------------------------------------------------------------------------------------------
# CORE INTEGRATION SETTINGS
# --------------------------------------------------------------------------------------------------
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
`nomad_vault_integration_consul_prefix` variable in the core module as well.
EOF
default = "terraform/"
}
variable "role_name" {
description = <<EOF
Name of role for each of the types of instances.
EOF
default = "default"
}
variable "consul_enable" {
description = <<EOF
Enable SSH Certificate signing on Consul servers. The Consul servers will also install the CA
from Vault automatically.
EOF
default = true
}
variable "consul_path" {
description = "Path for Consul servers SSH access"
default = "ssh_consul"
}
variable "vault_enable" {
description = <<EOF
Enable SSH Certificate signing on Vault servers. The Vault servers will also install the CA
from Vault automatically.
EOF
default = true
}
variable "vault_path" {
description = "Path for Vault servers SSH access"
default = "ssh_vault"
}
variable "nomad_server_enable" {
description = <<EOF
Enable SSH Certificate signing on Nomad servers. The Nomad servers will also install the CA
from Vault automatically.
EOF
default = true
}
variable "nomad_server_path" {
description = "Path for Nomad servers SSH access"
default = "ssh_nomad_server"
}
variable "nomad_client_enable" {
description = <<EOF
Enable SSH Certificate signing on Nomad clients. The Nomad clients will also install the CA
from Vault automatically.
EOF
default = true
}
variable "nomad_client_path" {
description = "Path for Nomad clients SSH access"
default = "ssh_nomad_client"
}