title: How to use a template for configuration file in Puppet
body: <p>I am new to Puppet and I am writing a module to setup configuration files. The problem is when  multiple clients will be using my module they will have to edit it according to their system. I have heard that templates are way to solve this problem. But I am not able to get it how to use a template for setting up configuration file. </p>
  
  <p>If anyone of you can give me a simple to follow example using templates to configure files would be really helpful. For example how can i setup Apache sites-available default configuration file using template, or give any other example you feel will help a new puppet user. BTW I am on Ubuntu machine.</p>