title: Set Environment Variables with Puppet
body: <p>I am using vagrant with puppet to set up virtual machines for development environments.  I would like to simply set a few environment variables in the .pp file.  Using virtual box and a vagrant base box for Ubuntu 64 bit.</p>
  
  <p>I have this currently.</p>
  
  <pre><code>$bar = 'bar'
  
  class foobar {
     exec { 'foobar':
       command =&gt; "export Foo=${bar}",
     }
  }
  </code></pre>
  
  <p>but when provisioning I get an error: Could not find command 'export'.</p>
  
  <p>This seems like it should be simple enough am I missing some sort of require or path for the exec type?  I noticed in the documentation there is an environment option to set up environment variables, should I be using that?</p>