title: Setting environment variables with puppet
body: <p>I'm trying to work out the best way to set some environment variables with puppet.</p>
  
  <p>I could use exec and just do <code>export VAR=blah</code>.  However, that would only last for the current session. I also thought about just adding it onto the end of a file such as bashrc. However then I don't think there is a reliable method to check if it is all ready there; so it would end up getting added with every run of puppet.</p>