title: Chef: Setting environment variables
body: <p>I need to set OS environment variables on my Centos/7 machine.</p>
  
  <p>I've tried it using on my <code>variables.rb</code> file:</p>
  
  <pre><code>host = 'locahost'
  port = 9201
  
  ENV['LV_ES_HOST'] = host
  ENV['LV_ES_PORT'] = '#{port}'
  </code></pre>
  
  <p>Nevertheless, on shell:</p>
  
  <pre><code>$ echo $LV_ES_HOST
  
  $
  </code></pre>
  
  <ol>
  <li>How could I set an Os environment variable?</li>
  <li>Could it be possible to set a OS enviroment variable only visible for an user?</li>
  </ol>
  
  <p>I need a OS available environment variable in order for my jee applications to be able to read its value.</p>
  
  <p>I'm running several jee containers on my machine, and the applications are running on need to get the LC_ES_HOST environment variable.</p>