title: puppet recursive directories creation
body: <p>I am trying to create recursively directories with same structure:</p>
  
  <p>I have the followig dirs:</p>
  
  <blockquote>
    <p>/some-1 /some-2 /some-3 /some-4</p>
  </blockquote>
  
  <p>and inside each of them I'd like to create the same structure, let name it pool:</p>
  
  <blockquote>
    <p>/some-1/pool /some-2/pool /some-3/pool /some-4/pool</p>
  </blockquote>
  
  <p>as suggested by Albert an elegant solution could be via the "define" method of puppet. </p>
  
  <pre><code>define create_pool {
  file { "/some-$title/pool":
      ensure =&gt; "directory",
      recurse =&gt; "true",
   }
  }   
  
  create_pool { [1,2,3,4]: }
  </code></pre>
  
  <p>Fortunately this solution is "looping" through the list:</p>