chore: cleanup unused config data
- remove token_policies from roles config data, this comes from policies.hcl inputs - remove policies from ldap groups - remove backend data from roles, this comes from config.hcl inputs
This commit is contained in:
@@ -61,7 +61,7 @@ module "auth_ldap_group" {
|
||||
|
||||
groupname = each.value.groupname
|
||||
backend = each.value.backend
|
||||
policies = each.value.policies
|
||||
policies = var.policy_auth_map[each.value.backend][each.value.groupname]
|
||||
|
||||
depends_on = [module.auth_ldap_backend]
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@ variable "auth_ldap_group" {
|
||||
type = map(object({
|
||||
groupname = string
|
||||
backend = string
|
||||
policies = list(string)
|
||||
}))
|
||||
default = {}
|
||||
}
|
||||
@@ -287,4 +286,4 @@ variable "policy_rules_map" {
|
||||
capabilities = list(string)
|
||||
})))
|
||||
default = {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user