voxpupuli / puppet-wildfly

Puppet module to install, configure and manage Wildfly (8/9/10+), JBoss EAP (6.1+/7.0+) and some Wildfly based products like apiman, Keycloak and Infinispan.
Apache License 2.0
29 stars 78 forks source link

Include support for CLI API for actions currently performed via HTTP API #298

Open EmersonPrado opened 10 months ago

EmersonPrado commented 10 months ago

Custom resource wildfly_cli nicely executes JBossCLI/WildFly commands thru an HTTP connection to JBoss/WildFly server. But, in case we need to change any configuration before starting the server, we need to resort to the embedded server.

My proposal is to either write a new provider "embedded" to the existing type wildfly_cli. I managed something in a module used internally at work, but I think this would better suit this public module.

EmersonPrado commented 8 months ago

Some basic facts require a big change:

So, I'm changing this issue to implement CLI API support, maybe as a common provider or shared library, which could serve wildfly_cli and wildfly_resource. And leaving the embedded server part for a future issue.

EmersonPrado commented 8 months ago

Proposal for code organization: