Skip to content

Commit c677982

Browse files
committed
add smtp varaibles
1 parent b8285f1 commit c677982

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ locals {
1111

1212
prometheus_operator_image_repository = var.prometheus_operator_image_repository
1313
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
1419
}
1520
}
1621

templates/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ grafana:
777777
region: ap-southeast-1
778778
smtp:
779779
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}
784784
from_name: "Grafana"
785785

786786
dashboardProviders:
@@ -3261,4 +3261,4 @@ thanosRuler:
32613261
data: {}
32623262
# auth: |
32633263
# foo:$apr1$OFG3Xybp$ckL0FHDAkoXYIlH9.cysT0
3264-
# someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.
3264+
# someoneelse:$apr1$DMZX2Z4q$6SbQIfyuLQd.xmo/P0m2c.

variables.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,28 @@ variable "prometheus_operator_image_tag" {
9797
type = string
9898
default = "v0.57.0"
9999
}
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+
}

0 commit comments

Comments
 (0)