title: Puppet : Use external facts inside templates
body: <p>I have defined some key value pairs in <code>/etc/facter/facts.d/value.txt</code> file.</p>
  
  <p>I could use those keys inside my init.pp script and successfully for the values using:</p>
  
  <pre><code>${key1}
  </code></pre>
  
  <p>I want to get those values inside my template file. I have used:</p>
  
  <pre><code>&lt;%= @key1 %&gt;
  </code></pre>
  
  <p>but it doesn't give me the value.</p>
  
  <p>What is the correct way to get the value of the external fact inside the template?</p>