Skip to content

Commit

Permalink
Move to local
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Oct 25, 2024
1 parent 5e1ca66 commit 229693b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/signoz/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
locals {
alertmanager_enabled = var.smtp_from != "" && var.smtp_username != "" && var.smtp_password != ""
}

resource "kubernetes_namespace" "signoz" {
metadata {
Expand Down Expand Up @@ -31,7 +34,7 @@ spec:
parameters:
- name: "clickhouse.password"
value: ${random_password.clickhouse-admin-password.result}
%{if var.smtp_from != "" and var.smtp_username != "" and var.smtp_password != ""}
%{if local.alertmanager_enabled}
- name: "alertmanager.enabled"
value: true
- name: "alertmanager.additionalEnvs.ALERTMANAGER_SMTP_FROM"
Expand Down

0 comments on commit 229693b

Please sign in to comment.