-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
108 lines (88 loc) · 2.73 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
# prometheus-node-exporter
variable "enabled" {
type = bool
default = true
description = "Variable indicating whether deployment is enabled"
}
# Helm
variable "helm_create_namespace" {
type = bool
default = true
description = "Create the namespace if it does not yet exist"
}
variable "helm_chart_name" {
type = string
default = "prometheus-node-exporter"
description = "Helm chart name to be installed"
}
variable "helm_chart_version" {
type = string
default = "2.0.3"
description = "Version of the Helm chart"
}
variable "helm_release_name" {
type = string
default = "prometheus-node-exporter"
description = "Helm release name"
}
variable "helm_repo_url" {
type = string
default = "https://prometheus-community.github.io/helm-charts"
description = "Helm repository"
}
# K8s
variable "k8s_namespace" {
type = string
default = "kube-system"
description = "The K8s namespace in which the prometheus-node-exporter service account has been created"
}
variable "settings" {
type = map(any)
default = {}
description = "Additional settings which will be passed to the Helm chart values, see https://hub.helm.sh/charts/stable/prometheus-node-exporter"
}
variable "values" {
type = string
default = ""
description = "Additional yaml encoded values which will be passed to the Helm chart."
}
variable "argo_namespace" {
type = string
default = "argo"
description = "Namespace to deploy ArgoCD application CRD to"
}
variable "argo_application_enabled" {
type = bool
default = false
description = "If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release"
}
variable "argo_application_use_helm" {
type = bool
default = false
description = "If set to true, the ArgoCD Application manifest will be deployed using Kubernetes provider as a Helm release. Otherwise it'll be deployed as a Kubernetes manifest. See Readme for more info"
}
variable "argo_application_values" {
default = ""
description = "Value overrides to use when deploying argo application object with helm"
}
variable "argo_destionation_server" {
type = string
default = "https://kubernetes.default.svc"
description = "Destination server for ArgoCD Application"
}
variable "argo_project" {
type = string
default = "default"
description = "ArgoCD Application project"
}
variable "argo_info" {
default = [{
"name" = "terraform"
"value" = "true"
}]
description = "ArgoCD info manifest parameter"
}
variable "argo_sync_policy" {
description = "ArgoCD syncPolicy manifest parameter"
default = {}
}