-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
37 lines (34 loc) · 1.63 KB
/
data.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
27
28
29
30
31
32
33
34
35
36
37
#__________________________________________________________________
#
# Data Objects - Pools and Policies
#__________________________________________________________________
data "intersight_search_search_item" "policies" {
for_each = { for v in local.policy_types : v => v if length(compact(local.data_policies[v])) > 0 }
additional_properties = jsonencode(
{ "ClassId" = "${local.bucket["${each.key}_policy"].object_type}' and Name in ('${trim(join("', '", local.data_policies[each.key]), ", '")
}') and ObjectType eq '${local.bucket["${each.key}_policy"].object_type}" }
)
}
data "intersight_search_search_item" "pools" {
for_each = { for v in ["resource", "uuid"] : v => v if length(compact(local.data_pools[v])) > 0 }
additional_properties = jsonencode(
{ "ClassId" = "${local.bucket["${each.key}_pool"].object_type}' and Name in ('${trim(join("', '", local.data_pools[each.key]), ", '")
}') and ObjectType eq '${local.bucket["${each.key}_pool"].object_type}" }
)
}
data "intersight_chassis_profile_template" "map" {
for_each = { for v in local.data_templates.ucs_chassis_profile_template : v => v }
name = each.value
}
data "intersight_fabric_switch_cluster_profile_template" "map" {
for_each = { for v in local.data_templates.ucs_domain_profile_template : v => v }
name = each.value
}
data "intersight_fabric_switch_profile_template" "map" {
for_each = { for v in local.data_templates.ucs_switch_profile_template : v => v }
name = each.value
}
data "intersight_server_profile_template" "map" {
for_each = { for v in local.data_templates.ucs_server_profile_template : v => v }
name = each.value
}