I\'m trying to work out the best way to set some environment variables with puppet.
I could use exec and just do export VAR=blah. However, that would only
export VAR=blah
If you take a look at Github's Boxen they source a script (/opt/boxen/env.sh) from ~/.profile. This script runs a bunch of stuff including:
for f in $BOXEN_HOME/env.d/*.sh ; do if [ -f $f ] ; then source $f fi done
These scripts, in turn, set environment variables for their respective modules.