-
1. Re: Howto handle infinispan cache creating and deployment
nadirx Apr 6, 2017 10:50 AM (in response to barash)When you make changes through the CLI / Console, they are persisted to the standalone.xml/domain.xml, so you could version that.
-
2. Re: Howto handle infinispan cache creating and deployment
barash Apr 6, 2017 1:01 PM (in response to nadirx)Yes, but how? It is not easy to create a straight forward workflow. Either I have to tell developers to *remember* to do that, which we know how that goes. Or I have to setup a watch to commit the changes to git, which is going to create a snowflake server. I cannot think of a good way of doing that.
Ideally, I want to be able to do cache creation through Ansible, for example. Or maybe programmatically at app boot time, a bash script to be called by Ansible. I want to know if there are any options around these lines.
I was hoping to be able to do it via a rest call to the console, but it seems it doesn't exist either.
-
3. Re: Howto handle infinispan cache creating and deployment
nadirx Apr 6, 2017 1:09 PM (in response to barash)So why not use the CLI ?
/subsystem=datagrid-infinispan/cache-container=clustered/distributed-cache=mynewcache:add(configuration=dist-cache-template)
-
4. Re: Howto handle infinispan cache creating and deployment
barash Apr 6, 2017 1:25 PM (in response to nadirx)That is nice actually, still I would love to see ansible integration
-
5. Re: Howto handle infinispan cache creating and deployment
nadirx Apr 6, 2017 3:02 PM (in response to barash)Just as a reference for the CLI (which we inherit from the WildFly server base) look at some recipes:
CLI Recipes - WildFly 10 - Project Documentation Editor
The DMR (the server internal configuration model) can also be configured over HTTP:
The HTTP management API - WildFly 10 - Project Documentation Editor