-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathise_system.tf
20 lines (17 loc) · 1.04 KB
/
ise_system.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
resource "ise_repository" "repository" {
for_each = { for repository in try(local.ise.system.repositories, []) : repository.name => repository }
name = each.key
enable_pki = try(each.value.enable_pki, local.defaults.ise.system.repositories.enable_pki, null)
password = try(each.value.password, local.defaults.ise.system.repositories.password, null)
path = try(each.value.path, local.defaults.ise.system.repositories.path, null)
protocol = try(each.value.protocol, local.defaults.ise.system.repositories.protocol, null)
server_name = try(each.value.server_name, local.defaults.ise.system.repositories.server_name, null)
user_name = try(each.value.user_name, local.defaults.ise.system.repositories.user_name, null)
}
resource "ise_license_tier_state" "license_tier_state" {
count = length(try(local.ise.system.licenses, [])) > 0 ? 1 : 0
licenses = [for license in try(local.ise.system.licenses, []) : {
name = license.name
status = try(license.status, local.defaults.ise.system.licenses.status, null)
}]
}