Skip to content

Commit

Permalink
Merge pull request #3 from astronomer/add_smtp
Browse files Browse the repository at this point in the history
Added variable for smtp uri
  • Loading branch information
sjmiller609 authored Jul 3, 2019
2 parents 9a293d3 + d96eb67 commit 3359728
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 5 additions & 7 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ global:
baseDomain: ${var.base_domain}
tlsSecret: astronomer-tls
istioEnabled: ${var.enable_istio == "true" ? true : false}
nginx:
loadBalancerIP: ${var.load_balancer_ip == "" ? "~" : var.load_balancer_ip}
privateLoadBalancer: ${var.cluster_type == "private" ? true : false}
perserveSourceIP: true
%{if var.enable_gvisor == "true"}
platformNodePool:
affinity:
nodeAffinity:
Expand All @@ -24,7 +21,6 @@ nginx:
operator: In
values:
- "false"
deploymentNodePool:
affinity:
nodeAffinity:
Expand All @@ -40,10 +36,14 @@ nginx:
key: sandbox.gke.io/runtime
operator: Equal
value: gvisor
astronomer:
houston:
config:
%{if var.smtp_uri != ""}
email:
enabled: true
smtpUrl: ${var.smtp_uri}
%{endif}
helm:
affinity:
nodeAffinity:
Expand All @@ -59,9 +59,7 @@ astronomer:
key: sandbox.gke.io/runtime
operator: Equal
value: gvisor
%{endif}
EOF

}

5 changes: 4 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ variable "enable_gvisor" {
type = string
}


variable "smtp_uri" {
default = ""
type = string
}

0 comments on commit 3359728

Please sign in to comment.