Move netbox role import into generated root config
This commit is contained in:
@@ -35,6 +35,11 @@ provider "arrstack" {
|
||||
address = local.vault_addr
|
||||
}
|
||||
|
||||
import {
|
||||
to = module.netbox_user_mgmt_role["netbox"].netbox_secret_backend_role.this
|
||||
id = "netbox/roles/vault-user-mgmt"
|
||||
}
|
||||
|
||||
terraform {
|
||||
backend "consul" {
|
||||
address = "https://consul.service.consul"
|
||||
|
||||
@@ -648,11 +648,6 @@ module "netbox_user_mgmt_role" {
|
||||
depends_on = [module.netbox_secret_backend]
|
||||
}
|
||||
|
||||
import {
|
||||
to = module.netbox_user_mgmt_role["netbox"].netbox_secret_backend_role.this
|
||||
id = "netbox/roles/vault-user-mgmt"
|
||||
}
|
||||
|
||||
# Declaratively manage the NetBox service users + object permissions the engine
|
||||
# roles mint tokens for, authenticating with the Vault-minted user-admin token
|
||||
# above (mirrors consul_acl_management). Consumes the SAME role config as
|
||||
|
||||
Reference in New Issue
Block a user