mirror of
https://github.com/mr0xb/home-iac.git
synced 2026-08-28 11:54:58 -04:00
initial commit
This commit is contained in:
commit
5e3d71294d
10 changed files with 274 additions and 0 deletions
21
terraform/vault-debmini/approles.hcl
Normal file
21
terraform/vault-debmini/approles.hcl
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
resource "vault_auth_backend" "approle" {
|
||||
type = "approle"
|
||||
}
|
||||
|
||||
resource "vault_approle_auth_backend_role" "unifi" {
|
||||
backend = vault_auth_backend.approle.path
|
||||
role_name = "unifi-role"
|
||||
token_policies = ["default", "networking"]
|
||||
}
|
||||
|
||||
resource "vault_approle_auth_backend_role "iot" {
|
||||
backend = vault_auth_backend.approle.path
|
||||
role_name = "iot-role"
|
||||
token_policies = ["default", "iot"]
|
||||
}
|
||||
|
||||
resource "vault_approle_auth_backend_role "infra_tools" {
|
||||
backend = vault_auth_backend.approle.path
|
||||
role_name = "infra-role"
|
||||
token_policies = ["default", "infra_tools"]
|
||||
}
|
||||
Loading…
Reference in a new issue