title: Puppet : How to load file from agent
body: <p>I have written a manifest that performs a number of tasks. The very first task is that it loads the contents of a file into a variable. The file will exist on the target node ( or managed node or the one running the Puppet agent).  </p>
  
  <p>However, when I triggered the manifest via a puppet run, I realized that it was expecting to find the file on the master, not the agent!</p>
  
  <pre><code>$some_var = file("path_to_file")
  </code></pre>
  
  <p>How do I fix this so that it loads the file from the agent?</p>