title: Create XML based on puppet templates with correct custom values?
body: <p>In a database config setup I have 20 something XML files with the database connection information.</p>
  
  <p>They have all exactly the same content except the connection information that is different. I have to use these XML files for five different environments, so instead of updating them manually I was hoping there was a good way to update their content with puppet, as I use this to set up the rest of the environment:</p>
  
  <pre><code>&lt;config-property-setting name="DatabaseName"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="Password"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="UserName"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="ServerName"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="DriverType"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="MaxStatements"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="NetworkProtocol"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="PortNumber"&gt;&lt;/config-property-setting&gt;
  &lt;config-property-setting name="LoginTimeout"&gt;&lt;/config-property-setting&gt;
  </code></pre>
  
  <p>These are the values needed to be changed for each XML file. </p>
  
  <p>Is there a good way to have a config file where the values for these files are entered and then, through templates, are pushed out as the correct configured and named XML files?</p>