Store environment variables inside a file

Until now, I used a directory.
I want file to be compatible with foreman