How to use variables while executing CLI commands in offline mode in EAP 7 ?
Issue
- How to use variables while executing CLI commands in offline mode in EAP 7 ? When running cli-scripts in offline-mode on Jboss EAP7.4, when we configure the Elytron with variables it fails with error:
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0211: Cannot resolve expression '${test.providerURL}'",
"rolled-back" => true
}
we are not able to use empty variables.
Jboss-CLI script for Elytron subsystem configuration:
embed-server --server-config=${CONFIG}
/subsystem=elytron/dir-context=TestDirContext:add( \
url="${test.providerURL}", \
principal="${test.bindDN}", \
credential-reference={clear-text="${test.bindCredential.password}"}, \
enable-connection-pooling=true)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.