JBoss EAP 7配置-如何使用CLI在JBoss EAP 7中创建域控制器

时间:2018-11-06 13:43:50

标签: maven gradle jboss ansible wildfly-10

我的部署模型/要求如下:

用于2个应用程序服务器的JBoss EAP 7的应用程序部署模型是域JVM托管在同一服务器上的应用程序JVM,即服务器实例。

因此,有一个主主机和一个备用主机。

在每个主机上,您将有一个域控制器,一个主机控制器和一个属于服务器组的服务器实例。

如何使用CLI创建域控制器?

通过以下gradle脚本创建主机:

CREATE TABLE 
item (
    _id INTEGER PRIMARY KEY AUTOINCREMENT,  
    checklist_id REFERENCES checklist(_id), 
    item_text TEXT, item_hint TEXT, 
    item_order INTEGER, 
    created_on INTEGER, 
    modified_on INTEGER
);

以下CLI几乎可以配置服务器组,服务器和主机并进行部署。

def getCommandHelper() {

    if(ext.commandHelper == null) {
        Properties config = getProperties('config.properties')
        ext.commandHelper = new JBossCommandsHelper().setHostAddress(config.jboss_cli_hostAddress).setPort(Integer.parseInt(config.jboss_cli_port)).setUsername(getJbossUserUsername()).setPassword(getJbossUserPassword());
    }

    return ext.commandHelper;
}

def executeCliCommand(def command) {
    getCommandHelper().executeCommand(command);
}

我当时想我需要创建一个域控制器,然后通过CLI将主机附加到它。

任何帮助将不胜感激。

谢谢。

0 个答案:

没有答案