-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
68 lines (60 loc) · 2.33 KB
/
outputs.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#__________________________________________________________
#
# Data Object Outputs
#__________________________________________________________
output "data_policies" {
description = "Moid's of the Policies that were not defined locally."
value = { for e in sort(keys(local.policies_data)) : e => { for k, v in local.policies_data[e] : k => v.moid } }
}
output "data_pools" {
description = "Moid's of the Pools that were not defined locally."
value = { for e in sort(keys(local.pools_data)) : e => { for k, v in local.pools_data[e] : k => v.moid } }
}
#__________________________________________________________
#
# Pools Outputs
#__________________________________________________________
output "ip" {
description = "Moids of the IP Pools."
value = { for k, v in intersight_ippool_pool.map : k => v.moid }
}
output "iqn" {
description = "Moids of the IQN Pools."
value = { for k, v in intersight_iqnpool_pool.map : k => v.moid }
}
output "mac" {
description = "Moids of the MAC Pools."
value = { for k, v in intersight_macpool_pool.map : k => v.moid }
}
output "resource" {
description = "Moids of the Resource Pools."
value = { for k, v in intersight_resourcepool_pool.map : k => v.moid }
}
output "uuid" {
description = "Moids of the UUID Pools."
value = { for k, v in intersight_uuidpool_pool.map : k => v.moid }
}
output "wwnn" {
description = "Moids of the WWNN Pools."
value = { for k, v in intersight_fcpool_pool.wwnn : k => v.moid }
}
output "wwpn" {
description = "Moids of the WWPN Pools."
value = { for k, v in intersight_fcpool_pool.wwpn : k => v.moid }
}
#__________________________________________________________
#
# Server Pool Qualification Policy
#__________________________________________________________
output "server_pool_qualification" {
description = "Moids of the Server Pool Qualfication Policies."
value = { for k, v in intersight_resourcepool_qualification_policy.map : k => v.moid }
}
#__________________________________________________________
#
# Reservation Outputs
#__________________________________________________________
output "reservations" {
description = "Moids of the Pool Reservations."
value = { for k in keys(local.reservation_results) : k => local.reservation_results[k] if length(local.reservation_results[k]) > 0 }
}