[infinispan-dev] A tool for adjusting configuration

Sebastian Laskawiec slaskawi at redhat.com
Tue Aug 29 02:28:22 EDT 2017


Thanks a lot for all tips.

It seems Tristan's solution fits the best. I've just tried it out and it
seems to do the job:
> ./cli.sh
> embed-server --server-config=cloud.xml --std-out=echo
> /subsystem=datagrid-infinispan-endpoint/rest-connector=rest-connector:remove
> stop-embedded-server

I might wrap some of the commands with a simple bash script (e.g. when I
need to incorporate it into larger commands including grep, awk or sed) but
it's more or less what I needed.

Thanks,
Sebastian


On Mon, Aug 28, 2017 at 7:46 PM Tristan Tarrant <ttarrant at redhat.com> wrote:

> For server the tool already exists: the server CLI can work in offline
> mode and manipulate a configuration using DMR ops.
>
> Tristan
>
> On 8/28/17 1:41 PM, Sebastian Laskawiec wrote:
> > Hey,
> >
> > Our cloud integration bits require a tool for adjusting the
> > configuration for certain use cases. A common example would be - take
> > this `cloud.xml` file, remove all caches, add a new, replicated cache as
> > default one.
> >
> > The tool should take either configuration or a file name as input (e.g.
> > `config-tool --add-default-cache -f cloud.xml` or `cat cloud.xml |
> > config-tool --add-default-cache > cloud-new.xml`) and print out
> > configuration either to System Out or to a file.
> >
> > Do you have any ideas what could I use to write such a tool? Those
> > technologies come into my mind:
> >
> >   * Perl
> >   * Python
> >   * Java (probably with some XPath library)
> >
> > Thoughts? Ideas? Recommendations?
> >
> > Thanks,
> > Sebastian
> > --
> >
> > SEBASTIANŁASKAWIEC
> >
> > INFINISPAN DEVELOPER
> >
> > Red HatEMEA <https://www.redhat.com/>
> >
> > <https://red.ht/sig>
> >
> >
> > _______________________________________________
> > infinispan-dev mailing list
> > infinispan-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/infinispan-dev
> >
>
> --
> Tristan Tarrant
> Infinispan Lead
> JBoss, a division of Red Hat
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

-- 

SEBASTIAN ŁASKAWIEC

INFINISPAN DEVELOPER

Red Hat EMEA <https://www.redhat.com/>
<https://red.ht/sig>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20170829/22de6cdb/attachment.html 


More information about the infinispan-dev mailing list