auto_auth { | |
method { | |
type = "token_file" | |
config { | |
token_file_path = "/home/username/.vault-token" | |
} | |
} | |
} | |
vault { | |
address = "http://localhost:8200" | |
} | |
env_template "FOO" { | |
contents = "{{ with secret \"secret/data/foo\" }}{{ .Data.data.lock }}{{ end }}" | |
error_on_missing_key = false | |
} | |
exec { | |
command = ["env"] | |
restart_on_secret_changes = "never" | |
restart_stop_signal = "notasignal" | |
} |