create new vault snapshot policy

This commit is contained in:
vincent 2023-08-26 17:31:08 +02:00
parent efa707dea0
commit ddf50d4837

View File

@ -1,4 +1,13 @@
data "vault_policy_document" "snapshot" {
rule {
path= "sys/storage/raft/snapshot"
capabilities = ["read"]
}
}
resource "vault_policy" "snapshot" {
name = "snapshot"
policy = data.vault_policy_document.snapshot.hcl
}
data "vault_policy_document" "nomad_server_policy" { data "vault_policy_document" "nomad_server_policy" {
rule { rule {
path = "auth/token/create/nomad-cluster" path = "auth/token/create/nomad-cluster"