File tree Expand file tree Collapse file tree 3 files changed +35
-5
lines changed Expand file tree Collapse file tree 3 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ locals {
11
11
12
12
prometheus_operator_image_repository = var.prometheus_operator_image_repository
13
13
prometheus_operator_image_tag = var.prometheus_operator_image_tag
14
+
15
+ smtp_host = var.smtp_host
16
+ smtp_user = var.smtp_user
17
+ smtp_password = var.smtp_password
18
+ smtp_from_address = var.smtp_from_address
14
19
}
15
20
}
16
21
Original file line number Diff line number Diff line change @@ -777,10 +777,10 @@ grafana:
777
777
region : ap-southeast-1
778
778
smtp :
779
779
enabled : true
780
- host : " email-smtp.us-west-2.amazonaws.com:465 "
781
- user : " AKIAXJT7Y56UEV3IO4HS "
782
- password : EMAIL_AUTH_PASSWORD
783
- from_address : " noreply-grafana@sph.com.sg "
780
+ host : ${smtp_host}
781
+ user : ${smtp_user}
782
+ password : ${smtp_password}
783
+ from_address : ${smtp_from_address}
784
784
from_name : " Grafana"
785
785
786
786
dashboardProviders :
@@ -3261,4 +3261,4 @@ thanosRuler:
3261
3261
data : {}
3262
3262
# auth: |
3263
3263
# foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
3264
- # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
3264
+ # someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
Original file line number Diff line number Diff line change @@ -97,3 +97,28 @@ variable "prometheus_operator_image_tag" {
97
97
type = string
98
98
default = " v0.57.0"
99
99
}
100
+
101
+ # ## SMTP ####
102
+ variable "smtp_host" {
103
+ description = " SMTP Server Host Address"
104
+ type = string
105
+ default = " "
106
+ }
107
+
108
+ variable "smtp_user" {
109
+ description = " SMTP User"
110
+ type = string
111
+ sensitive = true
112
+ }
113
+
114
+ variable "smtp_password" {
115
+ description = " SMTP Password"
116
+ type = string
117
+ sensitive = true
118
+ }
119
+
120
+ variable "smtp_from_address" {
121
+ description = " From Address which want to send emails"
122
+ type = string
123
+ default = " "
124
+ }
You can’t perform that action at this time.
0 commit comments