diff --git a/environments/root.hcl b/environments/root.hcl index f90aeff..b70ad32 100644 --- a/environments/root.hcl +++ b/environments/root.hcl @@ -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" diff --git a/modules/vault_cluster/main.tf b/modules/vault_cluster/main.tf index 98f17ee..21aca8b 100644 --- a/modules/vault_cluster/main.tf +++ b/modules/vault_cluster/main.tf @@ -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