I would like to use puppet classes to inject and/or replace xml elements
into an existing xml configuration file. This seems to me to be a common
problem already solved. Can anyone suggest the easiest way to do this?
An example use case would look like something like this.
Given xml file:
<host>
<server name="one"/>
<server name="two"/>
</host>
I want to inject <datasource name="example"/> into server one resulting in.
<host>
<server name="one">
<datasource name="example"/>
</server>
<server name="two"/>
</host>
Of course puppet would still need to make sure datasource example is always
under server one should someone manually modify the server one element in
the future.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/O61X63H4TAEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.