You can manage the whole file via Puppet, using a template to generate the content, but templates are not a mechanism to "edit" a file. That might look something like this:
modules/myapp/manifests/myapp/config.pp:
------
class myapp::config(
$im_factory_address
) {
file { '/path/to/myapp.conf.xml':
ensure => 'file',
content => template('myapp.conf.xml.erb'),
# owner => 'WhoKnows',
# group => 'WhoKnows',
# mode => 0640,
}
}
modules/myapp/templates/myapp.conf.xml.erb:
------
<bean id="IMFactory" class="org.apache.cxf.jaxws.