-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththermal.tf
26 lines (25 loc) · 978 Bytes
/
thermal.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
25
26
#__________________________________________________________________
#
# Intersight Thermal Policy
# GUI Location: Policies > Create Policy > Thermal
#__________________________________________________________________
resource "intersight_thermal_policy" "map" {
for_each = { for v in lookup(local.policies, "thermal", []) : v.name => merge(local.defaults.thermal, v, {
name = "${local.name_prefix.thermal}${v.name}${local.name_suffix.thermal}"
tags = lookup(v, "tags", var.policies.global_settings.tags)
}) }
description = coalesce(each.value.description, "${each.value.name} Thermal Policy.")
fan_control_mode = each.value.fan_control_mode
name = each.value.name
organization {
moid = local.orgs[local.organization]
object_type = "organization.Organization"
}
dynamic "tags" {
for_each = { for v in each.value.tags : v.key => v }
content {
key = tags.value.key
value = tags.value.value
}
}
}