title: How do I append array items to a string over a loop in puppet
body: <p>lets say I have an array with directory names</p>
  
  <pre><code>dirs = ['opt', 'apps', 'apache']
  </code></pre>
  
  <p>I want to iterate and generate a list of following paths</p>
  
  <pre><code>/opt
  /opt/apps
  /opt/apps/apache
  </code></pre>
  
  <p>through which I can create file resource.</p>