I am automating server rollout. We are wanting to store config values for all of our applications in Vault. In order to make this feasible I need to be able to get the values from Vault into the environment when a server is being provisioned. Then when the applications are installed and start running the config values are readily available for them.
I first found consul-template. It is a wonderful tool for watching config values and updating them as needed. However, consul-template only seems to deal with files.
I then found envconsul. I thought I had found a perfect solution until I realized that envconsul is not persisting values into my environment. Instead it is sending values into a child process, which values then disappear after the child process terminates.
I suppose I could have consul-template retrieve the values I need, put them into a config file that I then source to persist the value into the environment. This would then mean the values are in files on the filesystem which somewhat defeats the point of Vault.
I am still thinking this through and looking for other ideas.
Thanks,
Jonathan