title: Nested YAML for hiera in puppet
body: <p>I am working on designing a puppet architecture for our company.  I really like the idea of hiera and YAML files to classify my nodes.  However, I would really like to be able to either apply YAML files that aren't based on facts or import YAML files into another YAML file.</p>
  
  <p>For example NodeA.yaml</p>
  
  <pre><code>---
  include webserver.yaml
  include public.yaml
  
  classes:
  etc. . . 
  </code></pre>
  
  <p>This would allow me to reuse my code as much as possible. That way when I make a change to my web server configs, I only have to do it in one file instead of every node's YAML file.</p>
  
  <p>I'm open to other solutions as well.</p>