vault/command/agent/config/test-fixtures/config-env-templates-complex.hcl

37 lines
726 B
HCL

auto_auth {
method {
type = "token_file"
config {
token_file_path = "/home/username/.vault-token"
}
}
}
cache {}
template_config {
static_secret_render_interval = "5m"
exit_on_retry_failure = true
}
vault {
address = "http://localhost:8200"
}
env_template "FOO_PASSWORD" {
contents = "{{ with secret \"secret/data/foo\" }}{{ .Data.data.password }}{{ end }}"
error_on_missing_key = false
}
env_template "FOO_USER" {
contents = "{{ with secret \"secret/data/foo\" }}{{ .Data.data.user }}{{ end }}"
error_on_missing_key = false
}
exec {
command = ["env"]
restart_on_secret_changes = "never"
restart_stop_signal = "SIGINT"
}