-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
57 lines (50 loc) · 1.55 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
variable "release_name" {
type = string
description = "Helm release name"
default = "influxdb2"
}
variable "namespace" {
description = "Namespace to install InfluxDB chart into"
type = string
default = "influxdb"
}
variable "influxdb_chart_version" {
description = "Version of InfluxDB chart to install"
type = string
default = "2.0.12" # See https://artifacthub.io/packages/helm/influxdata/influxdb2 for latest version(s)
}
# Helm chart deployment can sometimes take longer than the default 5 minutes
variable "timeout_seconds" {
type = number
description = "Helm chart deployment can sometimes take longer than the default 5 minutes. Set a custom timeout here."
default = 800 # 10 minutes
}
variable "admin_password" {
description = "Default Admin Password"
type = string
default = ""
validation {
condition = var.admin_password != "" ? length(var.admin_password) >= 8 : true
error_message = "Admin password must be at least 8 characters in length."
}
}
variable "admin_token" {
description = "Default Admin Token"
type = string
default = ""
}
variable "values_file" {
description = "The name of the InfluxDB helm chart values file to use"
type = string
default = "values.yaml"
}
variable "enable_persistence" {
description = "Persist data to a persistent volume?"
type = bool
default = false
}
variable "pv_size" {
type = string
description = "Size of the persistent volume (if persistence is enabled)"
default = "0.5Gi"
}