title: How to pass two or more variables to Define in Puppet
body: <p>I struck to pass multiple arguments in define. </p>
  
  <p>The following is my code. I would like to pass two array inside the define, But I'm able to pass only one as like the following.</p>
  
  <pre><code> class test {   
      $path = [$path1,$path2]
      $filename = [$name1,$name2]
      define testscript { $filename: } // Can able to pass one value. 
   }
  
   define testscript () {
       file {"/etc/init.d/${title}": //Can able to receive the file name.
             ensure  =&gt; file,
             content =&gt; template('test/test.conf.erb'), 
   }
  </code></pre>
  
  <p>From my above code, I could retrieve the <code>filename</code> inside the define resource. I also need <code>path</code> to set the value in the template. I`m not able to send / retrieve second argument in template.</p>
  
  <p>Is there any way to improve my code to pass two values ( <code>$path</code> and <code>$filename</code> ) inside define resource ?</p>
  
  <p>Any help is much appreciated.</p>