added missing files

This commit is contained in:
Arseni
2026-03-10 21:45:41 +03:00
parent 7ae4518926
commit 049b23516a
22 changed files with 221 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
exit_after_auth = false
pid_file = "/tmp/vault-agent.pid"
vault {
address = "http://vault:8200"
}
auto_auth {
method "approle" {
mount_path = "auth/approle"
config = {
role_id_file_path = "/etc/vault/role_id"
secret_id_file_path = "/etc/vault/secret_id"
remove_secret_id_file_after_reading = false
}
}
sink "file" { config = { path = "/vault/secrets/.vault-token" } }
}
template {
source = "/etc/vault/templates/grafana.env.ctmpl"
destination = "/vault/secrets/grafana.env"
perms = "0644"
command = "chown 472:472 /vault/secrets/grafana.env"
}
template {
source = "/etc/vault/templates/alertmanager.yml.ctmpl"
destination = "/vault/alertmanager/alertmanager.yml"
perms = "0644"
}