Vault Agent template

How does agent handle secrets in different templates?

Does it resolve deduplicated secrets for all templates, or does it resolve secrets separately for each template file?

One of the use cases is to render CA, Cert and key from Vault PKI into different files. Or do I need to render everything into one file and split it with a script, as it was necessary in nomad template engine. By the way, do I still need to do this in nomad?