How to set System Wide Environment Variable in Cloud Config File on Digital Ocean
<p>I am pretty new to setting up remote servers, but I was playing around today and was hoping that I could leverage a <a href="https://www.digitalocean.com/community/tutorials/how-to-use-cloud-config-for-your-initial-server-setup" rel="noreferrer">Cloud Config</a> file upon setup in order to set a few environment variables as the server spins up. </p>

<p>How can I set my environment variables programmatically when spinning up a machine on Digital Ocean? The key is that I want to automate the setup and avoid interactively defining these variables.</p>

<p>Thanks in advance.</p>