Ask Your Question
1

Best way to change xml values

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

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.

<system-properties>
    <property name="jboss.default.multicast.address" value="230.0.1.1" boot-time="true"/>
    <property name="modcluster.balancer.name" value="mylb" boot-time="true"/>
    <property name="modcluster.proxylist" value="172.28.168.153:6777" boot-time="true"/>
    <property name="mycluster.modcluster.lbgroup" value="coollb" boot-time="true"/>
</system-properties>

Thanks & Regards,

ArunRaj. R

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

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: https://twiki.cern.ch/twiki/bin/view/Main/TerjeAndersenAugeas

There is some more general Augeas/Puppet information here, too: https://projects.puppetlabs.com/projects/1/wiki/puppet_augeas

edit flag offensive delete link more
0

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

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

Stats

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

Seen: 380 times

Last updated: Nov 04 '15