-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmtp.tf
24 lines (24 loc) · 914 Bytes
/
smtp.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
#__________________________________________________________________
#
# Intersight SMTP Policy
# GUI Location: Policies > Create Policy > SMTP
#__________________________________________________________________
resource "intersight_smtp_policy" "map" {
for_each = local.smtp
description = coalesce(each.value.description, "${each.value.name} SMTP Policy.")
enabled = each.value.enable_smtp
min_severity = each.value.minimum_severity
name = each.value.name
sender_email = each.value.smtp_alert_sender_address
smtp_port = each.value.smtp_port
smtp_recipients = each.value.mail_alert_recipients
smtp_server = each.value.smtp_server_address
organization { moid = var.orgs[each.value.org] }
dynamic "tags" {
for_each = { for v in each.value.tags : v.key => v }
content {
key = tags.value.key
value = tags.value.value
}
}
}