jcliff icon indicating copy to clipboard operation
jcliff copied to clipboard

JCliff in a JBoss (EAP6) Domain Environment

Open naefhe opened this issue 9 years ago • 3 comments

In a running JBoss Domain environment (as opposed to a Standalone environment), configuration changes and deployments are done on the one and only Host Controller (HC) designated as the Domain Controller (DC). When using the JBoss CLI to perform a configuration change on a specific host, I have to talk to the DC and specify /host= in front of e. g. /subsystem=. Similarly, to deploy content onto a particular group of servers, I have to specify /server-group= in front of /deployment=, etc.

How can I tell JCliff to which HC (/host=) or to which Server Group (/server-group=) to address a change or deployment, respectively? These two nodes are currently not accepted by JCliff in Input files and I couldn't find them in any rules either. Are there other mechanisms to achieve this?

Cheers, Heinz

naefhe avatar Dec 09 '15 15:12 naefhe

Domain mode is not supported yet. I can make the necessary changes, and you can give it a try, but it'll take a few days.

On Wed, Dec 9, 2015 at 8:18 AM, naefhe [email protected] wrote:

In a running JBoss Domain environment (as opposed to a Standalone environment), configuration changes and deployments are done on the one and only Host Controller (HC) designated as the Domain Controller (DC). When using the JBoss CLI to perform a configuration change on a specific host, I have to talk to the DC and specify /host= in front of e. g. /subsystem=. Similarly, to deploy content onto a particular group of servers, I have to specify /server-group= in front of /deployment=, etc.

How can I tell JCliff to which HC (/host=) or to which Server Group (/server-group=) to address a change or deployment, respectively? These two nodes are currently not accepted by JCliff in Input files and I couldn't find them in any rules either. Are there other mechanisms to achieve this?

Cheers, Heinz

— Reply to this email directly or view it on GitHub https://github.com/bserdar/jcliff/issues/64.

bserdar avatar Dec 09 '15 15:12 bserdar

That sounds very good, thanks a lot!

naefhe avatar Dec 09 '15 16:12 naefhe

Added --pre= support. You can now add --pre=/host=someHost that will prepend /host=someHost to all commands. It should make it work for domain mode.

This will still need some puppet code changes, and I'll do those later, once we get this part working.

bserdar avatar Dec 22 '15 04:12 bserdar