title: puppet - How do I append to path variable?
body: <p>I have access to just a module for our team, where as the global manifests are maintained by infrastructure team. The <code>PATH</code> variable gets set in the global manifests. </p>
  
  <p>I want to append to the <code>PATH</code> variable, but puppet ignores my exec block.</p>
  
  <pre><code>file { "/etc/profile.d/set_java_home.sh":
      ensure =&gt; file,
      source =&gt; "puppet:///modules/teamXXX/set_java_home.sh",
      mode =&gt; "u=rw,go=r"
  }
  
  Exec { path =&gt; [ "\${PATH}", "\${JAVA_HOME}/bin" ] }
  </code></pre>
  
  <p>How can I append to the <code>PATH</code> variable? </p>
  
  <h2>edit</h2>
  
  <p>I should have mentioned, I am looking to enhance the <code>PATH</code> variable for users's shell environment, rather than puppet's execution environment. </p>