Ask Your Question

Best way to change xml values

asked 2015-11-04 09:08:53 -0600

Hi Team,

I would like to change values in domain.xml ( JBoss Configuration file ). Please suggest me the best way to do it with sample examples to change it.

I have found the following ways. But No idea, How to do it for xml files.

( i ) inline_template

( ii ) regsubst

I have to change the following four property as per each group. For Each Group, values of the 4 properties will be changed. Please suggest me the best Industry practise standard.

    <property name="jboss.default.multicast.address" value="" boot-time="true"/>
    <property name="" value="mylb" boot-time="true"/>
    <property name="modcluster.proxylist" value="" boot-time="true"/>
    <property name="mycluster.modcluster.lbgroup" value="coollb" boot-time="true"/>

Thanks & Regards,

ArunRaj. R

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-11-04 13:56:29 -0600

GregLarkin gravatar image

Augeas is a good way to achieve your goals here. There is a good overview of how to do it found on this page:

There is some more general Augeas/Puppet information here, too:

edit flag offensive delete link more

answered 2017-01-17 12:22:44 -0600

dfarrell07 gravatar image

Xmlfile is a Puppet module that builds on Argeas to provide a more usable interface for working with XML files.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-11-04 09:08:53 -0600

Seen: 1,100 times

Last updated: Nov 04 '15