-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchart.tf
36 lines (30 loc) · 1007 Bytes
/
chart.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
# Install InfluxDB v2 helm_chart
resource "helm_release" "influxdb2" {
namespace = var.namespace
create_namespace = true
name = var.release_name
repository = "https://helm.influxdata.com"
chart = "influxdb2"
version = var.influxdb_chart_version
# Helm chart deployment can sometimes take longer than the default 5 minutes
timeout = var.timeout_seconds
# If values file specified by the var.values_file input variable exists then apply the values from this file
# else apply the default values from the chart
values = [fileexists("${path.root}/${var.values_file}") == true ? file("${path.root}/${var.values_file}") : ""]
set_sensitive {
name = "adminUser.password"
value = var.admin_password
}
set_sensitive {
name = "adminUser.token"
value = var.admin_token
}
set {
name = "persistence.enabled"
value = var.enable_persistence
}
set {
name = "persistence.size"
value = var.pv_size
}
}