32 lines
843 B
HCL
32 lines
843 B
HCL
vault {
|
|
address = "https://openbao:8200"
|
|
ca_cert = "/run/pki/service-ca/ca.crt"
|
|
}
|
|
auto_auth {
|
|
method "approle" {
|
|
mount_path = "auth/approle"
|
|
config = {
|
|
role_id_file_path = "/run/bootstrap/role-id"
|
|
secret_id_file_path = "/run/bootstrap/secret-id"
|
|
remove_secret_id_file_after_reading = false
|
|
}
|
|
}
|
|
}
|
|
template_config {
|
|
static_secret_render_interval = "5m"
|
|
exit_on_retry_failure = false
|
|
}
|
|
template {
|
|
contents = <<EOT
|
|
{{ with secret "secret/data/messenger/api" -}}
|
|
DATABASE_PASSWORD={{ .Data.data.database_password }}
|
|
REDIS_PASSWORD={{ .Data.data.redis_password }}
|
|
RABBITMQ_PASSWORD={{ .Data.data.rabbitmq_password }}
|
|
S3_ACCESS_KEY_ID={{ .Data.data.s3_access_key_id }}
|
|
S3_SECRET_ACCESS_KEY={{ .Data.data.s3_secret_access_key }}
|
|
{{- end }}
|
|
EOT
|
|
destination = "/run/rendered/runtime.env"
|
|
perms = "0644"
|
|
}
|