-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
147 lines (134 loc) · 3.62 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 "cluster_nodes" {
type = map(any)
}
variable "vault_endpoint" {
type = string
}
variable "dc_name" {
type = string
}
variable "nodeType" {
type = string
default = "worker"
}
variable "docker_volume_enable" {
type = bool
default = false
description = "Allow mounting host paths outside of the allocation working directory"
}
variable "host_volumes" {
type = list(map(string))
default = []
description = "Define a list of host_volume to make volumes available to jobs"
}
variable "base64" {
type = bool
default = true
}
variable "gzip" {
type = bool
default = true
}
variable "auto_auth_type" {
type = string
default = ""
validation {
condition = contains(toset(["aws", "oci", "gcp", "approle", "azure"]), var.auto_auth_type)
error_message = "Unsupported auto_auth_type value. Supported values: gcp, oci, approle, aws, azure."
}
}
variable "gcp_node_role" {
type = string
default = null
description = "(optional) Configured GCP role of the node"
}
variable "gcp_service_account" {
type = string
default = null
description = "(optional) Configured GCP service account"
}
variable "gcp_project_id" {
type = string
default = null
description = "(optional) The GCP Project ID"
}
variable "oci_node_role" {
type = string
default = null
description = "(optional) Configured OCI role of the node"
}
variable "aws_node_role" {
type = string
default = null
description = "(optional) Configured AWS role of the node"
}
variable "aws_access_key" {
type = string
default = null
description = "(optional) Static AWS Access Key credential for authentication"
}
variable "aws_secret_key" {
type = string
default = null
description = "(optional) Static AWS Secret Key credential for authentication"
}
variable "azure_node_role" {
type = string
default = null
description = "(optional) Configured Azure role of the node"
}
variable "azure_resource" {
type = string
default = "https://management.azure.com/"
description = "(optional) A configured Azure AD application which is used as the resource for generating MSI access tokens"
}
variable "vault_persistent_device" {
type = string
default = ""
description = "Device where to persist Caravan Vault data and configs"
}
variable "vault_home" {
type = string
default = "/etc/vault.d"
description = "Vault home directory to be mounted"
}
variable "vault_data" {
type = string
default = "/var/lib/vault"
description = "Vault data directory to be mounted"
}
variable "consul_persistent_device" {
type = string
default = ""
description = "Device where to persist Caravan Consul data and configs"
}
variable "consul_home" {
type = string
default = "/etc/consul.d"
description = "Consul home directory to be mounted"
}
variable "consul_data" {
type = string
default = "/var/lib/consul"
description = "Consul data directory to be mounted"
}
variable "nomad_persistent_device" {
type = string
default = ""
description = "Device where to persist Caravan Nomad data and configs"
}
variable "nomad_home" {
type = string
default = "/etc/nomad.d"
description = "Nomad home directory to be mounted"
}
variable "nomad_data" {
type = string
default = "/var/lib/nomad"
description = "Nomad data directory to be mounted"
}
variable "partition_prefix" {
type = string
default = ""
description = "Partition prefix. like p or empty if /dev/nvme1n1p1 or /dev/sdd1"
}